因此,您可以在下面找到我在标题中的代码。
当我将它作为 web 应用程序保存到我的主屏幕并从那里打开它时,应该会出现一个加载屏幕......
在 iPad 2 上,纵向和横向模式都像魅力一样工作。
但不是在我的4s上...
有什么想法吗?
编辑:是的,我确实检查了图像尺寸和 dpi 等。
<link rel="apple-touch-startup-image" media="(device-width: 320px)" href="../img/ios/startup320x460.png" /> <!-- iPhone -->
<link rel="apple-touch-startup-image" media="(device-width: 320px) and (-webkit-device-pixel-ratio: 2)" href="../img/ios/startup640x960png.png" /> <!-- iPhone Retina -->
<link rel="apple-touch-startup-image" media="(device-width: 768px) and (orientation: portrait)" href="../img/ios/startup768x1004.png" /> <!-- iPad Portrait -->
<link rel="apple-touch-startup-image" media="(device-width: 768px) and (orientation: landscape)" href="../img/ios/startup1024x748.png" /> <!-- iPad Landscape -->
<link rel="apple-touch-startup-image" media="(device-width: 768px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2)" href="../img/ios/startup1536x2008.png" /> <!-- iPad Landscape Retina -->
<link rel="apple-touch-startup-image" media="(device-width: 768px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 2)" href="../img/ios/startup1496x2048.png" /> <!-- iPad Landscape Retina -->