我制作了一个简单的 iPhone Web 应用程序,并设置了启动屏幕和图标以及所有内容。这是它的链接。
我遇到的问题是,当我将 web 应用程序保存到主屏幕时,在启动屏幕之前会先显示一个白屏(或者是我在 Safari 上打开的页面的屏幕截图)几秒钟。
我已将其他 iPhone Web 应用程序(如 JQtouch)添加到我的主屏幕,并打开它们并启动屏幕立即显示。
我想知道我的html代码是否有问题???
I've made a simple iPhone webapp and I've set a startup screen and icon and everything. Here's the link to it.
The problem I'm having is that when I save the webapp to the homescreen, a white screen (or else a screenshot of the page I have opened on Safari) shows up first for a few seconds before the startup screen.
I've added other iPhone webapps like JQtouch to my homescreen and opened them and the startup screen shows up straight away.
I'm wondering if I have something wrong in the html code???
发布评论
评论(1)
尝试更改
到
因此
width=device-width
并使用逗号 (,
) 而不是分号 (;
),除非在线的末尾。您的
中是否有此内容:
请参阅 iOS Web 应用程序配置 - mobile-meta -links.html 了解具体规格:
另请注意,只有使用 HTML5-doctype 时才会显示启动图像
来自 iOS Web 应用程序的图标和启动屏幕 - 视网膜也欢迎展示:
Try changing
<meta name="viewport" content="width=300px; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
to<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" />
so thewidth=device-width
and using commas (,
) instead of semi-colons (;
) except at the end of the line.Do you have this in your
<head>
:See iOS Web App Configuration - mobile-meta-links.html for exact specs:
Also read that the startup image will only show up if you use the HTML5-doctype
<!DOCTYPE html>
From Icons and splash screens for iOS web apps - retina displays also welcome: