Favicon not working in IE11; works in FF and Chrome

白昼怎懂夜的黑 提交于 2020-02-23 09:11:47

问题


The problem

(I have my favicon working in Firefox and Chrome already.) In Internet Explorer 11, my version, I can't seem to get the d*ng favicon to work. I have my file stored as .ico, and I have an alternate for Firefox, because you can use 64x64 .pngs in there. It shows the default icon IE has for pages.

The info

Windows Version - 10
Internet Explorer Version - 11
Icon file type - .ico

The script

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

回答1:


Favicons do not work in Internet Explorer when the page is local file system file (file://...).




回答2:


I've wasted a ton of time on this. The only solution I found that was totally foolproof is to just change the favicon programmatically once the entire application is loaded. See

https://stackoverflow.com/a/29465098/393274



来源:https://stackoverflow.com/questions/38317833/favicon-not-working-in-ie11-works-in-ff-and-chrome

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