有人知道如何删除 Safari iPhone 上顶部和底部的栏。我正在编写这个移动网页,但我无法摆脱导航栏。这可能吗?
谢谢。
最佳答案
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
<!-- this is the part responsible for hidding the bottom bar -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta names="apple-mobile-web-app-status-bar-style" content="black-translucent" />
唯一的问题是,它仅在用户将链接保存到 iPhone 桌面后才起作用。
希望这能解决您的问题。
关于iPhone移动网络+删除Safari界面栏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3230147/