专注于高品质PHP技术等信息服务于一体 [STIEMAP] [RSS]

百度提供的广告:
JSCSS
当前位置:首页 > 技术文档 > JSCSS >  > 
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>
<!-- //用户注册登录-->