图标 [英] favicon
问题描述
我已经创建了一个16乘16的图标文件并将其上传到顶层目录。我还添加了链接标记。
I have created an icon file 16 by 16 and uploaded it to the top directory. I have also added the link tag.
< link rel ="快捷图标"href ="favicon.ico"/>
<link rel="shortcut icon" href="favicon.ico" />
如果我使用www,图标不会加载面前的域名。如果www错过了前面的图标加载。任何人都可以解释原因,并且有解决方案为什么会发生这种情况,因为它不会发生在其他浏览器上。
The icon does not load if I use www infront of the domain name. If the www is miss off the front the icon loads. Can anyone explain why, and is there a solution why this is happening, since it does not occur on other browsers.
推荐答案
我是有同样的问题,我无法弄清楚原因。具有相同代码的其他网页可以正常工作,但在我的网站上,如果我没有使用"www",它会很有效。在域名面前。在Firefox中,favicon运行良好。
I am having the same issue and I cannto figure out why. Other webpages with the same code works ok, but on my site, it works well if I do not put the "www" in front of the domain. In Firefox, favicon works just well.
有人可以帮忙吗?
这篇关于图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!