好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

怎么锁定可视区域?_html/css_WEB-ITnose





全屏div

html,body {
margin:0;
height:100%;
}
#test {
width:100%;
height:100%;
background-color:#000;
position:absolute;
top:0;
left:0;
z-index:2;
opacity:0.3;
/*兼容IE8及以下版本浏览器*/
filter: alpha(opacity=30);
display:none;
overflow-y:hidden;
}

#log_window {
width:200px;
height:200px;
background-color:#FF0;
margin: auto;
position: absolute;
z-index:3;
top: 0;
bottom: 0;
left: 0;
right: 0;
display:none;
}



function shield(){
var s = document.getElementById("test");
s.style.display = "block";

var l = document.getElementById("log_window");
l.style.display = "block";
}
function cancel_shield(){
var s = document.getElementById("test");
s.style.display = "none";

var l = document.getElementById("log_window");
l.style.display = "none";
}




打开遮罩

aaa

查看更多关于怎么锁定可视区域?_html/css_WEB-ITnose的详细内容...

  阅读:43次