Disable hiding of address bar on mobile

前端 未结 3 1688
广开言路
广开言路 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:49

    You can wrap your HTML with div and do something like this: http://jsfiddle.net/DerekL/Fhe2x/show

    $("html, body, #wrapper").css({
        height: $(window).height()
    });
    

    It works on Android and iOS.

提交回复
热议问题