由于ie6不支持position为fixed熟悉,所以采用变通的方式。即使用css hack技术,_符号只有 IE6 才能识别,*html中的代码解决滚动时候提示框闪动的问题
<style>
#top{
border:1px solid blue;
width:200px;
position:fixed;
_position:absolute;
bottom:0;
right:0;
_top:expression(eval(document.documentElement.scrollTop+document.documentElement.clientHeight-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0)));
}
*html{
background-image:url(about:blank);
background-attachment:fixed;
}
</style>
本人参考借鉴 http://loo2k.com/ie6-position-fixed/ 中的知识