亚洲欧洲日产日韩激情,日韩人妻激情一区二区三,黄色av中文网站在线播放,熟女乱一区二区三区四区,小熟女精品一区二区三区,8050国产精品久久久久久,美国三级一级大片播放视频,亚洲一区中文字幕在线观看av,国产乱最黄一区二区三区视频

CSS讓div背景透明

2016/10/10 8:38:53   閱讀:1928    發(fā)布者:1928

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>亞網(wǎng)互聯(lián)</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">亞網(wǎng)互聯(lián)</div> </body> </html>