IE6支持position_fixed完美解决方法
来源:
中文源码网 浏览:172 次 日期:2024-04-28 15:26:20
【下载文档: IE6支持position_fixed完美解决方法.txt 】
IE6支持position:fixed完美解决方法
今天去一老外站看到了这他站上的十分平滑但却没有js,好奇,原来。。巧妙啊,分享下,相对而言比较节省资源。但效果好,使用方便,兼顾w3c。哈哈 复制代码 代码如下: ie-stuff.css 复制代码 代码如下:#footer { position: absolute; bottom: auto; clear: both; top:expression(eval(document.compatMode && document.compatMode=='CSS1Compat') ? documentElement.scrollTop +(documentElement.clientHeight-this.clientHeight) - 1 : document.body.scrollTop +(document.body.clientHeight-this.clientHeight) - 1); }