设置元标记时
apple-mobile-web-app-capable
和
apple-mobile-web-app-status-bar-style
要创建全屏网络应用程序,iOS状态栏位于屏幕顶部(半透明),底部还有一个空白的黑色空白栏。
这是我的代码:
<!DOCTYPE html><html><head><meta charset="utf-8">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta name="apple-touch-fullscreen" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
</head>
<body><h1>Test</h1>
<p>Capture a photo using camera</p>
<input type="file" capture="camera" accept="image/*">
</body></html>
标签还有另一个问题apple-mobile-web-app-status-bar-style
。通过相机输入拍摄并接受照片后,屏幕两侧会出现黑条。我在iPad3上使用iOS8 GM。
我认为这可能是iOS 8的错误,但Apple似乎并不在乎我的错误报告:(
有谁知道这个问题的解决方案/解决方法?
更新1: Apple在9月19日将我的错误报告标记为Duplicate(已关闭)。
更新2:错误已在iOS 8.3 Beta 1中修复
苹果修复了iOS 8.3 beta 1中的此错误
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句