New Fixed position bug on iOS8

前端 未结 3 1463
天涯浪人
天涯浪人 2020-12-19 02:54

I have a site with a fixed header and slide-out sidebars. With iOS7 in portrait orientation, the fixed header stays fixed when the sidebar is visible, but on iOS8 the header

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-19 03:32

    A little late to the party, but adding

    html, body {
        overflow-x: hidden;
        overflow-y: scroll;
    }
    

    Will fix the offset scrolling on fixed elements that are offset (eg. left:20px) in iOS 8.

提交回复
热议问题