Opera Mobile incorrectly calculates position: fixed

I have a interesting problem with position: fixed in Opera Mobile 11: Test page: http://dl.dropbox.com/u/841468/testcase/opera/fixed.html The red `
` should stay fixed on top. If I scroll page down, element moves a bit from top edge of viewport (exactly 93px in device pixels); but if I scroll up, element returns to correct position. (Screenshot on HTC Desire): ![Screenshot on HTC Desire][1] My findings: - Changing zoom level didn't help and didn't change element position from top edge. - It works correctly in Opera Mobile emulators (both 10.1b and 11) - Setting or removing "top" / "left" properties didn't help - Setting "z-index" or "display" properties to some value didn't fixed it - It shows this behavior even when I move viewport with `window.scrollTo(x, y)` - Setting "zoom" to "reset" didn't work - Mouse events get through this element to element under it (if it is in that incorrect position) - Trying IE hacks didn't work :) Thanks [1]: http://i.stack.imgur.com/AeeVL.png
Info: Also broken in Opera Mobile 11.1

以上就是Opera Mobile incorrectly calculates position: fixed的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » HTML5 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏