iOS 7 iPad Safari Landscape innerHeight/outerHeight layout issue

后端 未结 13 955

We\'re seeing issues with a web app that has a height of 100% on Safari in iOS 7. It appears that the window.innerHeight (672px) doesn\'t match window.outerHeight (692px), b

13条回答
  •  臣服心动
    2020-11-27 11:02

    With reference to the accepted answer, I've also had luck with the following rule:

    html.ipad.ios7 {
        position: fixed;
        width: 100%;
        height: 100%;
    }
    

    This has the added advantage in that it appears to stop the html element scrolling "under" a fixed body element.

提交回复
热议问题