html - Favicon 在 IE11 中不工作;适用于 FF 和 Chrome

标签 html windows internet-explorer-11 favicon ico

问题

(我的网站图标已在 Firefox 和 Chrome 中运行。)在我的 Internet Explorer 11 版本中,我似乎无法使 d*ng 网站图标正常工作。我将我的文件存储为 .ico,并且我有 Firefox 的备用文件,因为您可以在其中使用 64x64 .png。它显示 IE 的页面默认图标。

信息

Windows 版本 - 10
Internet Explorer 版本 - 11
图标文件类型 - .ico

脚本

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

最佳答案

当页面是本地文件系统文件 (file://...) 时,Favicons 在 Internet Explorer 中不起作用。

关于html - Favicon 在 IE11 中不工作;适用于 FF 和 Chrome,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38317833/

相关文章:

html - 这可能与 CSS 3

javascript - 无法在 Div 或 Canvas 上写入文本

c++ - 为什么我无法将字符串添加到组合框?

java - Windows 7 忽略我的帐户创建的 JAVA_HOME

windows - Conda 命令在适用于 Linux 的 Windows 子系统 (WSL) 中不起作用

html - Internet Explorer 11 z 索引 html/css 错误

javascript - 类型错误 : Object doesn't support this action in IE 11

javascript - 如何用 Angular 验证输入数字长度?

ssl-certificate - 如何在 IE 11 中信任自签名证书

html - 进度条没有出现在它应该出现的位置,带有悬停