【问题标题】:Startup images for web apps with iOS 8带有 iOS 8 的 Web 应用程序的启动图像
【发布时间】:2014-11-02 15:41:57
【问题描述】:

在 iOS 8 发布后,我编写了一个简单的 Web 应用程序,现在我想知道启动图像是否仍然有意义以及它们是否仍在使用。 由于我的网络应用程序中没有启动图像,我想知道 safari 在 iOS 8 下是否仍然支持它 我使用了以下代码,因为它是苹果指南中预先给出的

<link rel="apple-touch-startup-image" href="/startup.png">

【问题讨论】:

    标签: html ios web-applications ios8 mobile-safari


    【解决方案1】:

    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">
    

    【讨论】:

    • 好的,谢谢,这行得通。但不幸的是,iPhone 5 没有使用 iOS 8 加载启动图像。我使用了以下代码:
    • 好像我使用了错误的高度(而不是 1096px 我使用了 1136px)
    猜你喜欢
    • 2012-12-27
    • 1970-01-01
    • 1970-01-01
    • 2015-12-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-12-29
    相关资源
    最近更新 更多