标签:style io color os on div bs html ef
1.html:
<div id="mask"></div>
2.css:
#mask {
width:100%;
height:100%;
background:#000;
opacity:0.5;
filter:alpha(opacity=50);
position:absolute;
left:0;
top:0;
}
3.js:
document.getElementById("mask").style.height = document.documentElement.scrollHeight+"px";
标签:style io color os on div bs html ef
原文地址:http://www.cnblogs.com/lvmx/p/4159957.html