safari fullscreen in iOS 7.1 with minimal-ui meta tag

一个人想着一个人 提交于 2019-12-09 16:37:40

问题


I've read on multiple sites (including some stackoverflow questions) that there will be a minimal-ui meta tag for iOS 7.1 Safari. So today i've updated my iPad and it seems to have no effect. Can anyone confirm that this should work?

This is my meta tag:

<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, minimal-ui">

回答1:


This option is for iPhone only (right now).

It removes the additional bars on top and bottom of the viewport introduced with iOS 7.0 when the user scrolls up.

This is especially useful in landscape orientation, where a real fullscreen experience will be back, like it was right before iOS 7.

EDIT:
Source: official release notes for iOS 7.1
https://developer.apple.com/library/ios/releasenotes/General/RN-iOSSDK-7.1/

EDIT 2: Minimal-UI is no longer supporter in iOS 8 (thanks "achairapart")




回答2:


This is for iPhone only. The UI removal is the same process as in iOS 6, which equally never worked on the iPad either. It's not possible to remove Safari UI on the iPad without the user adding the page to the home screen.



来源:https://stackoverflow.com/questions/22308768/safari-fullscreen-in-ios-7-1-with-minimal-ui-meta-tag

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!