gpt4 book ai didi

html - "apple-touch-icon-precomposed"不是 rel 属性的真实值?

转载 作者:搜寻专家 更新时间:2023-10-31 08:18:59 30 4
gpt4 key购买 nike

为什么人们 ( h5bp , Mathias Bynens ) 说要使用 <link rel="apple-touch-icon-precomposed">元素? Apple's documentation on this没有提到 apple-touch-icon-precomposed作为 rel 的值属性。


Apple 的文档对预合成图标这样说:

Safari on iOS 7 doesn’t add effects to icons. Older versions of Safari will not add effects for icon files named with the -precomposed.png suffix.


所以看起来我们可以像这样引用预制的苹果触摸图标,对吧?:

<link rel="apple-touch-icon" href="apple-touch-icon-precomposed.png">

最佳答案

此直接引自the write-up on touch icons你链接到解释它:

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 上优化显示触摸图标。不要随意使用它。

关于html - "apple-touch-icon-precomposed"不是 rel 属性的真实值?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20716490/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com