favicon.ico没有出现在任何地方 [英] favicon.ico not showing up anywhere

查看:154
本文介绍了favicon.ico没有出现在任何地方的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看过这里的几篇文章,并且已经在网上进行了进一步的研究,但看不到问题所在。

I've looked at several posts on here, and I've done further research online, but I can't see to find the problem.

我把主目录中的favicon.ico,但未在任何浏览器中显示。我已经在Firefox和Safari上亲自尝试过,其余的都在Browsershots上尝试过。

I put the favicon.ico in the main directory, but it's not showing up on any browser. I've tried it personally on Firefox and Safari, and I've tried the rest on Browsershots.

我在html的开头也有这行:

I also have this line in the head of the html:

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

我也尝试过不使用类型...,就像我在其他页面上看到的那样

I've also tried it without the type..., as I have it on other pages on the same server.

此网站未显示其网站图标(蓟) )

此网站的确显示了收藏夹图标(greenman)

我的两个站点位于同一服务器上,而图标图标位于站点目录的同一位置。

Two of my sites on the same server with the favicon in the same place of the site's directory. ??

我唯一能想到的是在线上转换ico并在将其上传到服务器之前将其保存在MacBook Pro上存在问题吗?

The only thing I can figure is there was a problem converting the ico online and saving it on my MacBook Pro before uploading it to the server?

任何帮助或提示或想法都将不胜感激。

Any help or hints or thoughts are greatly appreciated.

推荐答案

出现相同的问题。找到了一个很好的答案: https://stackoverflow.com/a/16375622/5359989

Had the same problem. Found this great answer: https://stackoverflow.com/a/16375622/5359989

对我有用的是将'favicon.ico'更改为诸如'myfavicon.ico'之类的独特内容,并相应地在html中引用它。希望这对您也有用。

What worked for me was changing 'favicon.ico' to something unique such as 'myfavicon.ico' and referencing it in the html accordingly. Hope this works for you also.

这篇关于favicon.ico没有出现在任何地方的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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