Disable hiding of address bar on mobile

前端 未结 3 1700
广开言路
广开言路 2021-02-03 14:04

I\'m working on a mobile website which has \"pages\" that have div\'s which take up the screens full size and you can scroll between each one. The problem is, the window resizes

3条回答
  •  一个人的身影
    2021-02-03 14:54

    The simplest way to achieve this is to scroll in a container, rather than scrolling the document.

    E.g.:

    
      
    ... all your content here ...
    html, body { height: 100%; } #scrollable-content { height: 100%; overflow-y: scroll; }

提交回复
热议问题