/**
解决IE 6不支持 fixed
IE6 hack
*/
* html,html body{
background-image: url("about:blank");
background-attachment: fixed;
}
* html #menu {
position: absolute;
bottom: auto;
top: expression(100+((e=document.documentElement.scrollTop)?e:document.body.scrollTop)+'px');
}
本文介绍了一种解决Internet Explorer 6不支持CSS fixed属性的问题的方法。通过使用特定的IE6 hack,可以让固定定位在该浏览器中正常工作。这种方法利用了背景图片和表达式来实现元素的绝对定位。
780

被折叠的 条评论
为什么被折叠?



