日期:2013-11-23  浏览次数:21156 次

网页制造aiyiweb文章简介:让IE6 比较完满地支持position: fixed.

html {
_background-image: url(about:blank);
_background-attachment: fixed; /* prevent screen flash in IE6 */
}

div{ overflow: visible;
position: fixed;
top: 50px;
_position: absolute; /*IE6 用absolute模仿fixed*/
_top: expression(documentElement.scrollTop + 50 + "px"); /*IE6 动态设置top位置*/
}