是否可以在iPhone上隐藏Safari中的地址栏? [英] Is it possible to hide the address bar in Safari on iPhone?

查看:969
本文介绍了是否可以在iPhone上隐藏Safari中的地址栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到在iOS7中这是不可能的,但现在使用的是iOS9。是否可以使用javascript隐藏地址栏?

I saw that it was impossible in iOS7 but now with iOS9. Is it possible to hide the address bar with javascript?

我想为iPhone和iPad用户执行此操作。

I want to do this for the iPhone and iPad users.

谢谢!

推荐答案

您可以声明 display mode

"display": "standalone"




应用程序的外观和感觉像一个独立的应用程序。这可以包括应用程序具有不同的窗口,应用程序启动器中的自己的图标等。在此模式下,用户代理将排除用于控制导航的UI元素,但可以包括其他UI元素,例如状态栏。

The application will look and feel like a standalone application. This can include the application having a different window, its own icon in the application launcher, etc. In this mode, the user agent will exclude UI elements for controlling navigation, but can include other UI elements such as a status bar.

唯一的问题是用户必须先将您的网络应用添加到主屏幕。

The only gotcha is that user has to add your web app to homescreen first.

这篇关于是否可以在iPhone上隐藏Safari中的地址栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆