iPad Web应用程序 - 无法获取风景启动画面显示

时间:2011-11-03 15:42:55

标签: ipad landscape iphone-standalone-web-app

我正在尝试将网页转换为原生应用。我有要显示的图标和要显示的人像启动画面,但景观闪屏不会。以下是我的元标记 -

<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="viewport" content="user-scalable=no" />
<link rel="apple-touch-startup-image" sizes="768x1004" href="images/splash_tall.jpg" />
<link rel="apple-touch-startup-image" sizes="1024x748" href="images/splash_wide.jpg" />
<link rel="apple-touch-icon" href="images/icon.png" />

图像为768x1004(纵向)和1024x748(纵向)。有人看到任何东西吗?

1 个答案:

答案 0 :(得分:2)

我不确定是否重要,但请将您的图片更新为.png并更新您的链接参考....

<!-- iPad Portrait 768x1004 -->
<link rel="apple-touch-startup-image" media="(min-device-width: 768px) and (orientation: portrait)" href="spash-1004.png" />
<!-- iPad Landscape 1024x748 -->
<link rel="apple-touch-startup-image" media="(min-device-width: 768px) and (orientation: landscape)" href="spash-1024.png" />