网站图标未在Safari中显示 [英] Favicon not showing in Safari

查看:491
本文介绍了网站图标未在Safari中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在互联网上进行了搜索,但我仍然不知道为什么收藏图标不会在野生动物园中显示,在chrome和FF上显示正常, 我已经在标题中尝试过这些:

I've searched all over the internet already and I still don't know why the favicon wont show on safari, it shows ok on chrome and FF, I've tried these in the header:

<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>

或这个

<link rel="shortcut icon" href="favicon.ico?23189123" type="image/x-icon"/>

将图标图标更改为32位,或从野生动物园库中删除了WebpageIcons.db等. 并且我在浏览器堆栈上检查了网站,以防万一是我的缓存.

changed the favicon to 32 bits, or removed the WebpageIcons.db from safari library etc. and I check the website on browserstacks in case is my cache..

我还缺少什么吗?请让我知道任何建议,谢谢.

Is there anything else Im missing? please let me know any suggestions, thanks in advance.

推荐答案

Safari使用的是"apple-touch-icon",而不仅仅是"icon".另外,如果要在所有Apple设备中显示图标,则必须为所有Apple设备指定图标.

Safari uses "apple-touch-icon" and not just "icon". Also, you will have to specify the icon for all Apple devices if you want it to show up in all of them.

在此处了解更多信息 https://css-tricks.com/favicon-quiz/

这篇关于网站图标未在Safari中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆