网站图标未显示在Google Chrome浏览器中 [英] Favicon not showing up in Google Chrome browser

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

问题描述

出于某种原因,我的网站图标未显示在我的Chrome标签上.从我已阅读的所有文章中,我正在正确地编写代码.它确实可以在Firefox中使用.我还清除了缓存并尝试了隐身窗口,但仍然看不到它.

For some reason my favicon is not showing up on my chrome tab. From all the articles I have read I am writing the code correctly. It does work in Firefox. I also cleared my cache and tried an incognito window and am still not seeing it.

当我去:本地主机:8080/favicon.ico我确实看到了收藏夹图标.

When I go to: localhost:8080/favicon.ico I do see the favicon.

这是我在HTML标头中的代码:

Here is my code within the HTML header:

<link rel="shortcut icon" sizes="16x16 32x32 64x64" 
href="/favicon.ico" type="image/x-icon" />
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link rel="apple-touch-icon" href="apple-touch-icon.png" />

任何帮助将不胜感激!谢谢!

Any help would be appreciated! Thanks!

推荐答案

尝试按#3

  1. 收藏夹缓存重置

解决问题的更激烈的方法,但是您可以这样做在全球范围内而不是在每个站点上,都是为了清除浏览器的网站图标缓存.步骤是:

A more drastic way to solve the problem, but that allows you to do it globally rather than site-by-site, is to clear the browser’s favicon cache. The procedure is:

  • 在Mac上:删除以下文件

  • on Mac: delete the following file

${user.home}/Library/Application Support/Google/Chrome/Default/Favicons

  • 在Windows上:从以下位置删除Favicons-journal和Favicons文件

  • on Windows: delete Favicons-journal and Favicons files from the following location

    C:\Users\nomeutente\AppData\Local\Google\Chrome\User Data\Default
    

  • 在两种情况下,建议重新启动浏览器.

    In both cases, a browser restart is suggested.

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

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