HTML5 Full Screen Web Apps: No browser bars

前端 未结 6 1783
生来不讨喜
生来不讨喜 2021-01-31 11:29

I am creating a HTML5 web app for mobile devices and was asked to hide the browser nav bar (the back & forward buttons) (typo here prev.). How can I achieve

6条回答
  •  北荒
    北荒 (楼主)
    2021-01-31 11:53

    If you can use JQuery in your web-app than I would suggest you to go for NiceScroll plugin.

    It can be used for both mobile and desktop browsers and will hide the browser's scrollbars. If your code is going beyond the viewport height of browser than it will make a custom scrollbar which will fadeout if not in use.

    Here is its Demo.

    Edit:
    As per your update, I would like to add that I am actually not a native mobile web-app developer but while searching for your problems I found some SO questions that can help you to lead the way further:

    • Removing address bar from browser (to view on Android)
    • Fullscreen Web App for Android

    And these tutorials:

    • Full Screen Web Apps
    • Best Practices for Web Apps

提交回复
热议问题