菜鸟教程小白 发表于 2022-12-12 13:35:17

ios - iPad 无法为主页书签找到 apple-touch-icon.png


                                            <p><p>我添加了
<code> 链接 rel="apple-touch-icon"href="apple-touch-icon.png"</code> 到 head 部分的主 index.php 文件。我在根目录中有 <code>apple-touch-icon.png</code> 。我试过 57x57、72x72 和 114x114 png。</p>

<p>当我在 Safari 中单击“添加到主屏幕”按钮时,iPad 无法找到我的 .png 文件。它显示了一个带有灰色轮廓的黑框。我不知道如何让我的 iPad 使用我的 .png 图片。</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>iPad 的正确尺寸是 144px ,因为 114px 是 iPhone 视网膜显示屏的尺寸。</p>

<pre><code>&lt;link rel=&#34;apple-touch-icon&#34; sizes=&#34;72x72&#34; href=&#34;apple-touch-icon.png&#34; /&gt;
&lt;link rel=&#34;apple-touch-icon&#34; sizes=&#34;144x144&#34; href=&#34;apple-touch-icon-retina.png&#34; /&gt;
</code></pre></p>
                                   
                                                <p style="font-size: 20px;">关于ios - iPad 无法为主页书签找到 apple-touch-icon.png,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/18196423/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/18196423/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - iPad 无法为主页书签找到 apple-touch-icon.png