问题
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