在怪癖模式下的IE无限滚动bug

时间:2011-05-05 18:49:16

标签: internet-explorer infinite-scroll

所以这个人一直在困扰我。我需要的是一个带有css表达式的绝对定位容器,它将其固定到页面底部(以补偿模拟doctypeless或无DTD的IE的固定定位时的难度),同时包含另一个绝对定位的元素,在某些时候是在浏览器的视口下方。由于这是将包含在其他人的网页中的内容,因此我无法依赖正确的文档类型来正确显示。任何将内部元素置于视口下方的内容---填充,边距或定位 - 都会导致页面在IE中永久滚动。

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
<style type="text/css">

#footer {
position: expression("absolute");
_top:expression(document.body.scrollTop+document.body.clientHeight-this.clientHeight);
width:800px;
height:800px;
background-color:blue;
}
#huh {

position:absolute;
bottom:-20px;
width:400px;
height:400px;
background-color:red;
}

        <br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh<br/>eh
<div id="footer">
   <div id="huh">

   </div>
</div>
</body>
</html>

需要两个绝对定位真正联系我的手。在我的非测试案例中,将huh div messes与包装器的显示相对定位。有什么想法吗?

0 个答案:

没有答案
相关问题