Jquery 填出 div 遮盖层.txt
<!-- 用户注册登录 -->
<script type="text/javascript">
var width = document.body.clientWidth;
var height = document.body.clientHeight;
function showDialog()
{
$(".dialog .bg").attr("style","width:"+width+"px;height:100%;");
}
</script>
<style>
.dialog .bg {
position:absolute;
background-color:#000;
opacity:0.7;
filter: alpha(opacity=70);
top:0;
left:0;
right:0;
bottom:0;
}
</style>
<div class="dialog">
<div class="bg"></div>
</div>
<!-- //用户注册登录-->
- 上一篇:css 入门学习常用CSS
- 下一篇:Div 遮盖z-index