简体   繁体   English

适用于iPhone 7的Apple Touch图标(主屏幕图标)吗?

[英]Apple Touch Icon (Homescreen icon) for iPhone 7?

I would like to provide a custum Homescreen Icon for iPhone devices. 我想为iPhone设备提供一个定制的Homescreen图标。 This is the code I have after my -Tag: 这是我在-Tag之后的代码:

<link rel="apple-touch-icon" href="../img/apple-touch-icon-120.png" sizes="120x120" />
<link rel="apple-touch-icon" href="../img/apple-touch-icon-144.png" sizes="144x144" />
<link rel="apple-touch-icon" href="../img/apple-touch-icon-180.png" sizes="180x180" />

This is working fine on 6s but it not working on iPhone 7. What did I do wrong? 这在6s上可以正常工作,但在iPhone 7上却不能正常工作。我做错了什么?

Apparently there are no differences between iPhone 6 and 7 regarding the Touch icon. 显然,iPhone 6和7在触摸图标方面没有区别。 And if there were, the iPhone 7 would probably support the legacy icons. 如果有的话,iPhone 7可能会支持旧版图标。

The error might be due to a caching issue of some kind. 该错误可能是由于某种缓存问题引起的。 If you already visited the site with your iPhone 7 before the Touch icon was available, maybe your phone is simply too "lazy" to notice it immediately. 如果您在使用Touch图标之前已经使用iPhone 7访问了该站点,则可能您的电话太“懒惰”而无法立即注意到它。 It would be useful to retry with your iPhone 7, or to try with another iPhone 7. 重试iPhone 7或尝试使用其他iPhone 7很有用。

Another useful check would be to run RFG's checker against your site. 另一个有用的检查是对您的站点运行RFG的检查器 It can spot several issues, like broken links or ill-formed images. 它可以发现几个问题,例如断开的链接或格式错误的图像。 Full disclosure: I'm the author of this service. 完全披露:我是这项服务的作者。

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

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