Responsive website on iPhone - unwanted white space on rotate from landscape to portrait

前端 未结 12 1576
挽巷
挽巷 2020-11-29 22:21

I am creating a responsive website, and have just noticed a strange behaviour in my content pages when viewed on the iPhone. It scales correctly when loaded in portrait mode

12条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-29 22:58

    This problem occurs when width of any division is greater than the width of iPAD's screen.

    In my case, some divisions were having size of 1000px, so I just went for width:auto and it works. overflow-x:hidden also does the same thing, but is not a preferred way.

提交回复
热议问题