iOS 7.1中的safari全屏,带有minimal-ui元标记 [英] safari fullscreen in iOS 7.1 with minimal-ui meta tag

查看:576
本文介绍了iOS 7.1中的safari全屏,带有minimal-ui元标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经阅读过多个网站(包括一些stackoverflow问题),iOS 7.1 Safari会有一个minimal-ui元标记。所以今天我更新了我的iPad,似乎没有效果。任何人都可以确认这应该有效吗?

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?

这是我的元标记:

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


推荐答案

此选项仅适用于iPhone(现在)。

This option is for iPhone only (right now).

当用户向上滚动时,它会移除iOS 7.0中引入的视口顶部和底部的附加条形。

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

这在横向方向尤其有用,真正的全屏体验将会回来,就像在iOS 7之前一样。

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

编辑:

来源:iOS 7.1正式发布说明

https://developer.apple.com/library/ios/releasenotes/General/RN-iOSSDK-7.1/

编辑2:
最小UI不再是iOS 8中的支持者(感谢achairapart)

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

这篇关于iOS 7.1中的safari全屏,带有minimal-ui元标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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