iPhone 的 "Add to Favorites" 需要多大的网站图标?

What favicon size does iPhone's "Add to Favorites" need?

我正在关注 Apple 的 Safari Web Content Guide - Configuring Web Applications,它在大多数时间都按预期工作。但是当我想添加到 iPhone 上的收藏夹时,图标没有显示。是尺寸问题吗?或者我还应该做什么才能显示收藏夹图标?谢谢


我的代码:

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="icon" type="image/x-icon/" href="{{ "/favicon.ico" | relative_url }}">
  <link rel="apple-touch-icon" href="{{ "/apple-touch-icon.png" | relative_url }}">
  <link rel="apple-touch-icon" sizes="76x76" href="{{ "/apple-touch-icon-76x76.png" | relative_url }}">
  <link rel="apple-touch-icon" sizes="120x120" href="{{ "/apple-touch-icon-120x120.png" | relative_url }}">
  <link rel="apple-touch-icon" sizes="152x152" href="{{ "/touch-icon-ipad.png" | relative_url }}">
  <link rel="apple-touch-icon" sizes="180x180" href="{{ "/touch-icon-iphone-retina.png" | relative_url }}">
  <link rel="apple-touch-icon" sizes="167x167" href="{{ "/touch-icon-ipad-retina.png" | relative_url }}">
  {%- seo -%}
  <link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
  {%- feed_meta -%}
  {%- if jekyll.environment == 'production' and site.google_analytics -%}
    {%- include google-analytics.html -%}
  {%- endif -%}
  <!-- site css -->
  <link rel="stylesheet" href="{{'/assets/main.css' | prepend: site.baseurl}}">
  {% seo %}
</head>

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

根据 Apple 当前的指导,默认触摸图标大小如下:

我已经弄明白了,它现在可以正确显示网站图标了。非常感谢@Charlie,感谢网站图标检查器网站:https://realfavicongenerator.net/favicon_checker#.YIHdji1h0Ts

我好像搞砸了一些网站图标的分辨率,所以他们导致了这个问题。