iOS8 、iPhone6 及iPhone6+:Apple touch icon 与Startup Image

iOS8 、iPhone6 及iPhone6+:Apple touch icon 与Startup Image

本文可视为《iOS / Android 移动设备中的 Touch Icons》及《iOS 7 Web App的初级优化之道》的补充文,因为iOS8 、iPhone6 及 iPhone6+ 是最近出来的新玩意,针对他们的更新或兼容也进行了差不多了。这是我google 了一阵子的成果,不讲原理的东西,直接上结果。

Apple touch icon

来自StartOverFlow 的一个针对这两款新设备的meta 代码:

<link rel="apple-touch-icon" href="touch-icon-iphone.png">
<link rel="apple-touch-icon" sizes="76x76" href="touch-icon-ipad.png">
<link rel="apple-touch-icon" sizes="120x120" href="touch-icon-iphone-retina.png"> 
<link rel="apple-touch-icon" sizes="152x152" href="touch-icon-ipad-retina.png"> 
<link rel="apple-touch-icon" sizes="180x180" href="touch-icon-iphone-6-plus.png">

另外一个总结大全:

<!-- For Chrome for Android: -->
<link rel="icon" sizes="192x192" href="touch-icon-192x192.png">
<!-- For iPhone 6 Plus with @3× display: -->
<link rel="apple-touch-icon-precomposed" sizes="180x180" href="apple-touch-icon-180x180-precomposed.png">
<!-- For iPad with @2× display running iOS ≥ 7: -->
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="apple-touch-icon-152x152-precomposed.png">
<!-- For iPad with @2× display running iOS ≤ 6: -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="apple-touch-icon-144x144-precomposed.png">
<!-- For iPhone with @2× display running iOS ≥ 7: -->
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="apple-touch-icon-120x120-precomposed.png">
<!-- For iPhone with @2× display running iOS ≤ 6: -->
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="apple-touch-icon-114x114-precomposed.png">
<!-- For the iPad mini and the first- and second-generation iPad (@1× display) on iOS ≥ 7: -->
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="apple-touch-icon-76x76-precomposed.png">
<!-- For the iPad mini and the first- and second-generation iPad (@1× display) on iOS ≤ 6: -->
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="apple-touch-icon-72x72-precomposed.png">
<!-- For non-Retina iPhone, iPod Touch, and Android 2.1+ devices: -->
<link rel="apple-touch-icon-precomposed" href="apple-touch-icon-precomposed.png"><!-- 57×57px -->

Startup Image

针对这两款霸气外露的新设备的Startup Image 代码:

<!-- iOS 8 iPhone 6 (portrait) --> 
<link rel="apple-touch-startup-image" href="/apple-touch-startup-image-750×1294.png" media="(device-width: 375px) and (device-height: 667px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2)"> 
<!-- iOS 8 iPhone 6 (landscape) --> 
<link rel="apple-touch-startup-image" href="/apple-touch-startup-image-710x1334.png" media="(device-width: 375px) and (device-height: 667px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 2)"> 
<!-- iOS 8 iPhone 6 Plus (portrait) --> 
<link rel="apple-touch-startup-image" href="/apple-touch-startup-image-1242×2148.png" media="(device-width: 414px) and (device-height: 736px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 3)"> 
<!-- iOS 8 iPhone 6 Plus (landscape) --> 
<link rel="apple-touch-startup-image" href="/apple-touch-startup-image-1182x2208.png" media="(device-width: 414px) and (device-height: 736px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 3)">

设计师请额外增加一些工作量,以上。

补充:viewport 中的minimal-ui

iOS 7.1 新添加的 minimal-ui (点击这里查看详情)在iOS8 中已经不再支持,没必要再使用了。

评分:
当前平均分 0.00 (0%) - 0 个投票
2 条 评论
  1. 代码部分没有显示,ff 或者 chrome 都不行。最后看了页面源代码…

    9 年前 回复
    • 多谢提醒,原来是代码高亮插件忘记开启了

      9 年前 回复
发表评论