IE10 Favicon Issue

你。 提交于 2019-12-01 23:19:49

问题


I've googled this issue, read all the threads, done what they have said and still I am having a problem trying to display a simple favicon.ico in IE10!

The file size is 16x16 (I have also tried 32x32) and it works perfectly in Chrome, FireFox and Safari so I know I have implemented the code right.

This is what I have done so far:

1) Placed the favicon.ico in the root folder

2) added these lines of code:

<link rel="shortcut icon" href="http://www.barnhillmarketing.co.uk/favicon.ico" type="image/x-    icon"> 
<link rel="icon" href="/favicon.ico" type="image/x-icon" />

3) Tried both absolute and relative URLs.

4) Cleared my internet cache / history and rebooted still with no joy.

5) Made the icon again in a favicon generator still to no avail.

If anyone has a fix for this then that would be fantastic as I am at my whits end with this :-/ If you go to http://www.barnhillmarketing.co.uk/favicon.ico you will see the icon shows up so I have no idea what is going on here :-(

Thanks in advance,

Keith


回答1:


I had the same problem a few days ago. If you change the path of the favicon using versions for example its clears all caching issues.

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


来源:https://stackoverflow.com/questions/17316682/ie10-favicon-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!