0
我发现我的web应用程序中显示不正确
在Opera,因为下面的bug:Opera css的错误,解决方法 - ?
#one {
overflow: hidden;
position: fixed;
height: 100px;
width: 100px;
}
#two {
position: fixed;
bottom: 0;
left: 0;
right: 0;
top: 0;
background: #ccc;
}
和HTML:
<div id="one">
<div id="two"></div>
</div>
,而不是占据整个视口#two在Opera中被#one剪下。
有没有办法解决这个不影响其他浏览器?
不应该这样工作吗?它**被包含在'#one'中,其中有'overflow:hidden'。如果他们有'绝对位置',那么它的工作方式也是一样的。在大多数浏览器上。 (我记得早些版本的东西有一个仍然显示溢出内容的错误)。 –
绝对位置 - 是,固定位置 - 不。这就是为什么所有其他主流浏览器(Chrome,FF,IE)在整个屏幕上都会扩展#two的原因 – tsds