手机
当前位置:查字典教程网 >网页设计 > Div+Css教程 >IE6支持position:fixed完美解决方法
IE6支持position:fixed完美解决方法
摘要:今天去一老外站看到了这他站上的十分平滑但却没有js,好奇,原来。。巧妙啊,分享下,相对而言比较节省资源。但效果好,使用方便,兼顾w3c。哈哈...

今天去一老外站看到了这他站上的十分平滑但却没有js,好奇,原来。。巧妙啊,分享下,相对而言比较节省资源。但效果好,使用方便,兼顾w3c。哈哈

复制代码 代码如下:

<>

<>

ie-stuff.css

复制代码 代码如下:

#footer {

position: absolute;

bottom: auto;

clear: both;

top:e­xpression(eval(document.compatMode &&

document.compatMode=='CSS1Compat') ?

documentElement.scrollTop

+(documentElement.clientHeight-this.clientHeight) - 1

: document.body.scrollTop

+(document.body.clientHeight-this.clientHeight) - 1);

}

【IE6支持position:fixed完美解决方法】相关文章:

img图片元素下多余空白解决方案

div嵌套 img 空白解决方法

css position详解

纯CSS实现鼠标悬停提示的方法

CSS中背景background-position负值定位深入理解

浏览器不支持position: fix的解决

span设CSS样式总是不起作用的解决方法

css控制div不能居中的解决办法

CSS3用@font-face实现自定义英文字体

完美解决IE兼容模式问题

精品推荐
分类导航