问题
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