iOS6 Safari orientation change bug?

前端 未结 5 1815
攒了一身酷
攒了一身酷 2020-12-17 15:52

I\'m having an rare behavior in Safari and iOS6. When changing from landscape to portrait, the viewport is resized, but it seems that is no correctly positioned horizontally

5条回答
  •  误落风尘
    2020-12-17 16:38

    I found the solution thanks to this: http://www.tonylea.com/2010/safari-overflow-hidden-problem/

    I had overflow:hidden in my HTML tag, since I have some rotating DIVs hidden left and right, but it seems that Safari in iOS6 wasn't accepting that. Setting position:relative to HTML tag solved the problem for me!

提交回复
热议问题