gpt4 book ai didi

html - iPhone 的 "Add to Favorites"需要多大的图标大小?

转载 作者:行者123 更新时间:2023-12-05 04:50:52 24 4
gpt4 key购买 nike

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

enter image description here


我的代码:

<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 当前的指南,默认触摸图标大小如下: enter image description here

关于html - iPhone 的 "Add to Favorites"需要多大的图标大小?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67172842/

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