<div class="alert_fullbg"></div>
样式:
html,html body { _background:url(/css/about:blank) #F4F5EF; _background-attachment:fixed } body { height:100% } .alert_fullbg {height:100%; width:100%; top:0; left:0; position:fixed; _position:absolute; z-index:100000; filter:alpha(opacity=20); opacity:0.2; background-color:#000; _filter:alpha(opacity=100); _background-color:none; _filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#33000000,endColorstr=#33000000); _top:expression(eval(document.documentElement.scrollTop)) }
使用效果前:
使用效果后: