解决IE6浏览器下position:fixed
时间:2011-05-11 来源:flyhacker
解决IE6下:
解决方法:
1. JS
2. CSS
1.
window.onresize = window.onscroll = function(){
//reset top
};
2.
!position: absolute;
_top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0)));
可以自己修改联调!
position:fixed
解决方法:
1. JS
2. CSS
1.
window.onresize = window.onscroll = function(){
//reset top
};
2.
!position: absolute;
_top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0)));
可以自己修改联调!
相关阅读 更多 +