iOS 8启动后,我编写了一个简单的Web应用程序,现在我想知道启动映像是否仍然有意义,以及是否仍在使用它们。由于我的Web应用程序中没有启动图像,因此我想知道Safari是否仍在iOS 8下支持该图像,所以我使用了以下代码,因为它是根据Apple的指导方针预先给出的
<link rel="apple-touch-startup-image" href="/startup.png">
参见https://stackoverflow.com/a/26057714/118091
您将指定尺寸和方向支持。
<!-- iPhone 6 -->
<link href="750x1294.png" media="(device-width: 375px) and (device-height: 667px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image">
<!-- iPhone 6+ Portrait -->
<link href="1242x2148.png" media="(device-width: 414px) and (device-height: 736px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 3)" rel="apple-touch-startup-image">
<!-- iPhone 6+ Landscape -->
<link href="2208x1182.png" media="(device-width: 414px) and (device-height: 736px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 3)" rel="apple-touch-startup-image">
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句