Favicon未在Firefox或Chrome中显示 [英] Favicon not showing up in Firefox or Chrome

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

问题描述

我已经将favicon.ico上传到服务器上的客户端根目录(htdocs),并在< / head> 之前添加了
,标记:

I've uploaded a favicon.ico to my client's root (htdocs) directory on the server and added the following before the </head> tag:

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

除了Firefox和Chrome之外,它在每个浏览器中都可以正常加载。在这两个中,虽然
图标加载在选项卡中,但它不会加载到网址栏中。在Firefox中,我看到一个globe
的图标,而在Chrome中,我看到一个文档图标。

It loads fine in every browser EXCEPT for Firefox and Chrome. In those two, although the icon loads in the tab, it does not load in the web address bar. In Firefox I see a globe icon and in Chrome I see a document icon.

推荐答案

在Chrome和FF?我没有看到在铬的任何一方地址栏中的收藏夹图标。那里显示在选项卡中。文档图标用于显示有关页面的详细信息。
如果您在地址栏中找到显示图标的页面,则可以查看页面源代码,以了解它们是如何实现的。

Isn't this normal in Chrome and FF? I don't see the favicon in the address bar on any side in chrome. There the are displayed in the tab. The doc icon is use to show detailed information about the page. If you find a page showing a favicon in the address bar you can look at the page source to find out how they did it.

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

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