标签:width set 使用 res height os doc div document express background
只需要样式控制即可!
.bg {
background: #000;
position: absolute;
top: 0;
left: 
0;
width: 100%;
height: 100%;
filter: 
alpha(opacity=35);
-moz-opacity: 0.35;
opacity: 0.35;
-height: 
expression(document.body.scrollHeight > document.body.offsetHeight ? 
document.body.scrollHeight:document.body.offsetHeight + ‘px‘);
}
 height 在ie 6 中为 最小高度
min-height 在 ie7 中代表最小高度 
一般控制 div 
自动调整高度使用i6/i7/ff
例如:
  _height:100px; /*控 
ie6*/
min-height:100px;/*控ie7*/
height:auto;
document.body.scrollHeight为页面总高度(可见区域+不可见区域)。
document.body.offsetHeight为可见区域高度。
标签:width set 使用 res height os doc div document express background
原文地址:http://www.cnblogs.com/ToughGuy/p/3700669.html