[英]“apple-touch-icon-precomposed” is not a real value for the rel attribute?
Why do people ( h5bp , Mathias Bynens ) say to use a <link rel="apple-touch-icon-precomposed">
element? 为什么人们( h5bp , Mathias Bynens )说使用
<link rel="apple-touch-icon-precomposed">
元素? Apple's documentation on this makes no mention of apple-touch-icon-precomposed
as a value for the rel
attribute. Apple的文档没有提及
apple-touch-icon-precomposed
作为rel
属性的值。
Apple's docs say this about precomposed icons: Apple的文档说这是关于预先组合的图标:
Safari on iOS 7 doesn't add effects to icons.
iOS 7上的Safari不会为图标添加效果。 Older versions of Safari will not add effects for icon files named with the -precomposed.png suffix.
较旧版本的Safari不会为使用-precomposed.png后缀命名的图标文件添加效果。
So it seems that we could reference the precomposed apple touch icon like this, right?: 所以我们似乎可以像这样引用预先组合的苹果触摸图标,对吧?:
<link rel="apple-touch-icon" href="apple-touch-icon-precomposed.png">
This direct quote from the write-up on touch icons you linked to explains it: 这个直接引用来自您链接的触摸图标的说明解释了它:
As of iOS 7, no special effects are applied to touch icons anymore, so if you only care about iOS 7 and up you don't have to use
precomposed
anymore.从iOS 7开始,触摸图标不再有特殊效果,所以如果您只关心iOS 7及更高版本,则不必再使用
precomposed
。
In other words, it's recommended for optimal display of your touch icons on older iOS versions. 换句话说,建议在较旧的iOS版本上最佳显示触摸图标。 Feel free to not use it.
随意不要使用它。
My own testing of iOS 6 on an iPad 3 made it seem as though the rel
value was necessary when the filename used wasn't apple-touch-icon-*
. 我自己在iPad 3上对iOS 6的测试表明,当使用的文件名不是
apple-touch-icon-*
时, rel
值是必要的。
Adding -precomposed
to an irregular filename (eg app-icon76x76.png
) had no effect, whereas adding rel="apple-touch-icon-precomposed"
removed the effects as expected. 添加
-precomposed
到不规则的文件名(例如app-icon76x76.png
)没有效果,而添加rel="apple-touch-icon-precomposed"
删除了预期的效果。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.