div背景透明样式:样式代码:.alert{filter:alpha(opacity=100); /* IE */ -moz-opacity:1.0; /* Moz + FF */opacity: 1.0; height:300px; width:500px; backgroun ...
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
原标题:设置div背景透明的CSS样式
关键词:CSS
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。