How to hide Safari Mobile browser bottom button bar in iPhone?

后端 未结 3 2018
逝去的感伤
逝去的感伤 2020-12-31 07:07

Following is head section:


    

        
相关标签:
3条回答
  • 2020-12-31 07:36

    For iOS 7.1, you can set this in your header to minimize the UI:

    <meta name="viewport" content="width=device-width, minimal-ui">
    

    It was introduced in iOS 7.1 beta 2. This site was instrumental in helping me understand how minimal-ui works: http://www.mobilexweb.com/blog/ios-7-1-safari-minimal-ui-bugs

    0 讨论(0)
  • 2020-12-31 07:43

    You cannot programmatically hide the toolbar in Mobile Safari.

    Your users need to add your web app to their home screens in order for the bars to be hidden when they next launch your app by tapping its icon. This is done by tapping the middle button in the toolbar, then choosing Add to Home Screen. You may need to display a message informing your users to do this.

    0 讨论(0)
  • 2020-12-31 07:44

    You can use this litte useful JS project to help your user add the page to the homescreen: Add 2 Home

    0 讨论(0)
提交回复
热议问题