久久伦理影院I美女亚洲精品I手机色在线I免费韩国avI国产手机免费视频I久久99视频免费I懂色av懂色av粉嫩av分享吧I日本精品一区二区在线观看I开心综合网I国产一区在线观看免费I日韩欧美一区二区三区在线I一区av在线播放I精品综合久久久I日韩一区二区在线免费观看I国产99在线播放I色射色I国产精品一区二区在线免费观看

CSS讓div背景透明

2016/10/10 8:38:53   閱讀:1965    發布者:1965

div背景透明樣式:

樣式代碼:

.alert{filter:alpha(opacity=100); /* IE */ -moz-opacity:1.0; /* Moz + FF */

opacity: 1.0; height:300px; width:500px; background:#ccc; left:50%; top:50%;margin-top:-150px;
margin-left:-250px;position:absolute;z-index:99; text-align:center; padding:20px;}

使用方法:

<div class=”alert”>

背景透明

</div>

html代碼:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0  
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http- 
equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>亞網互聯</title> 
<style type="text/css"> 
.alert 
{filter:alpha(opacity=100); /* IE */ -moz-opacity:1.0; /* Moz + FF */ opacity: 1.0; height:300px;
width:500px; background:#ccc; left:50%; top:50%;margin-top:-150px;margin-left:
-250px;position:absolute;z-index:99; text-align:center; padding:20px} </style> </head> <body> <div class="alert">亞網互聯</div> </body> </html>