简体   繁体   English

苹果触摸图标(iPhone视网膜)未应用-出了点问题吗?

[英]Apple touch icon (iphone retina) not applied - something wrong?

I have 4 icons for my site: 我的网站有4个图标:

  • iPhone 苹果手机
  • iPhone Retina iPhone视网膜
  • iPad iPad的
  • iPad Retina iPad视网膜

They're all working perfectly apart from iPhone retina (144x144), which is just showing the usual low-rez iphone icon (57x57). 除iPhone视网膜(144x144)之外,它们都工作正常,后者仅显示通常的低分辨率iphone图标(57x57)。 Below is my code, please tell me what I'm doing wrong.. All paths/images/sizes are correct. 下面是我的代码,请告诉我我在做什么错。所有路径/图像/大小均正确。

Thank you. 谢谢。

<link rel="apple-touch-icon-precomposed" href="app/img/touch-icon-iphone.png" />
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="app/img/touch-icon-ipad.png" />
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="app/img/touch-icon-iphone-retina.png" />
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="app/img/touch-icon-ipad-retina.png" />

Did you rename 114x114 images picture name with @2x ? 您是否使用@ 2x重命名了114x114图像图片名称? imageName@2x etc. imageName @ 2x等

set iPhone retina Image Name touch-icon-iphone@2x.png . 设置iPhone视网膜图像名称touch-icon-iphone@2x.png that is 144*144. 就是144 * 144。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM