How to completely hide the navigation bar in iPhone / HTML5

后端 未结 4 1712
青春惊慌失措
青春惊慌失措 2020-12-22 21:23

I\'m really new to HTML5 for mobile. I use jQuery Mobile for my current app and I have some problems hiding the navigation bar.

I found this site: http://m.something

4条回答
  •  悲&欢浪女
    2020-12-22 21:52

    The problem with all of the answers given so far is that on the something borrowed site, the Mac bar remains totally hidden when scrolling up, and the provided answers don't accomplish that.

    If you just use scrollTo and then the user later scrolls up, the nav bar is revealed again, so it seems you have to put the whole site inside of a div and force scrolling to happen inside of that div rather than on the body which keeps the nav bar hidden during scrolling in any direction.

    You can, however, still reveal the nav bar by touching near the top of the screen on apple devices.

提交回复
热议问题