[英]How can I make my web app iPhone 5 compatible?
I have a website optimized as a web app with iOS safari, so that adding to home screen opens the app in a separate Webview. 我有一个网站优化为具有iOS Safari的网络应用程序,因此添加到主屏幕会在单独的Webview中打开应用程序。 However, it always opens in the 3.5" letter boxed mode, instead of stretching to fill the screen. I know that with native apps, you just have to add the iPhone 5 sized launch image. How can I do this for a web app?
但是,它始终以3.5英寸信箱方式打开,而不是拉伸以填满屏幕。我知道,对于原生应用程序,您只需添加iPhone 5大小的启动图像。如何为Web应用程序执行此操作?
I found on this post that all that is required is that you remove width=device-width
from the viewport meta tag. 我在这篇文章中发现,所需要的只是从视口元标记中删除
width=device-width
。 The blog talks about specifying a startup image, but this appears to be optional. 该博客讨论了如何指定启动图像,但这似乎是可选的。
Edit: Original source of answer is Max Firtman . 编辑:答案的原始来源是Max Firtman 。 He indicates it may be a bug as well (see comments), but for now, this solution works.
他表示这也可能是一个错误(见评论),但现在,这个解决方案有效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.