求助:内容已发链接,请高手帮忙修改下兼容问题。 着急~
滚动
[解决办法]
ie6不支持fixed定位,IE7应该td不支持fixed定位,没效果。。
你那2列用div来模拟就好了吧。。ie7+ div支持fixed
IE6你要使用absolute定位+expresstion css来模拟
[解决办法]
.fixed-right {
position:fixed;
_position:absolute;
right:0;
left:auto;
_right:auto;
_left:"expression(eval(document.documentElement.scrollLeft+document.documentElement.clientWidth-this.offsetWidth)-(parseInt(this.currentStyle.marginLeft,10)
[解决办法]
0)-(parseInt(this.currentStyle.marginRight,10)
[解决办法]
0))";
}
/* 可以把 about:blank 设置成你的CSS文件地址 */
html,html body {
_background-image:url(about:blank);
_background-attachment:fixed;
}
<div style="position: relative;width:400px;">
<div style="position: absolute;left: 0;width: 30px;height: 200px;border: solid 1px red;"></div>
<div style="position: absolute;right: 16px;width: 50px;height: 200px;border: solid 1px red;"></div>
<div style="height: 200px;width:400px; overflow: auto;">
<table>...</table>
</div>
</div>