简体   繁体   English

如何为野生动物园添加网站图标

[英]How to add website icon for the safari

I am trying to add the website icon for the safari. 我正在尝试添加野生动物园的网站图标。 The icon show up on "Add to home screen". 该图标显示在“添加到主屏幕”上。 However, it does not show up when I am trying to add it to favorite or bookmark. 但是,当我尝试将其添加到收藏夹或书签时,它没有显示。 (It show up in simulator..) (它显示在模拟器中。)

<link rel="apple-touch-icon" href="/static/images/logo-ios.png"/>
<link rel="apple-touch-icon" sizes="72x72" href="/static/images/ios.png"/>
<link rel="apple-touch-icon"  sizes="114x114" href="/static/images/logo-ios.png"/>
<link rel="apple-touch-icon"  sizes="144×144" href="/static/images/logo-ios.png"/>

I also have manifest.json for the android which seems not affect anything in safari 我也有android的manifest.json文件,似乎不影响Safari中的任何内容

Your logo-ios.png file should be 150x150 pixels and it should also be named apple-touch-icon.png. 您的logo-ios.png文件应为150x150像素,并且也应命名为apple-touch-icon.png。 I'm not sure the file name is important. 我不确定文件名是否重要。 But I believe the size is. 但我相信大小是。

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

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