我决定为 iOS 更改我的网络应用程序图标。
这是我用来链接我的图标的方式:
<!-- iOS 7 iPad (retina) -->
<link href="/assets/img/misc/ios/apple-touch-icon-152x152-precomposed.png"
sizes="152x152"
rel="apple-touch-icon-precomposed">
<!-- iOS 6 iPad (retina) -->
<link href="/assets/img/misc/ios/apple-touch-icon-144x144-precomposed.png"
sizes="144x144"
rel="apple-touch-icon-precomposed">
<!-- iOS 7 iPhone (retina) -->
<link href="/assets/img/misc/ios/apple-touch-icon-120x120-precomposed.png"
sizes="120x120"
rel="apple-touch-icon-precomposed">
<!-- iOS 6 iPhone (retina) -->
<link href="/assets/img/misc/ios/apple-touch-icon-114x114-precomposed.png"
sizes="114x114"
rel="apple-touch-icon-precomposed">
<!-- iOS 7 iPad -->
<link href="/assets/img/misc/ios/apple-touch-icon-76x76-precomposed.png"
sizes="76x76"
rel="apple-touch-icon-precomposed">
<!-- iOS 6 iPad -->
<link href="/assets/img/misc/ios/apple-touch-icon-72x72-precomposed.png"
sizes="72x72"
rel="apple-touch-icon-precomposed">
<!-- iOS 6 iPhone -->
<link href="/assets/img/misc/ios/apple-touch-icon-57x57"
sizes="57x57"
rel="apple-touch-icon-precomposed">
这是我发现的新方法:
<link rel="apple-touch-icon" href="/assets/img/misc/ios/icon.png" />
<link rel="apple-touch-icon" sizes="72x72" href="/assets/img/misc/ios/icon-72.png" />
<link rel="apple-touch-icon" sizes="114x114" href="/assets/img/misc/ios/icon@2x.png" />
<link rel="apple-touch-icon" sizes="144x144" href="/assets/img/misc/ios/icon-72@2x.png" />
但是,当我在我的设备上对其进行测试时,新方法不起作用,所以我想知道为 IOS6 和 IOS7 显示 Web 应用程序图标的绝对正确方法是什么?