为什么我的fav图标不能在Chrome中工作了? [英] Why doesn't my fav icon work in Chrome any more?
本文介绍了为什么我的fav图标不能在Chrome中工作了?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的图标工作了一段时间了 Chrome Canary ,在更新后已停止显示。
My favicon worked on Chrome Canary for a while, and after I updated it it stopped appearing.
我已在下面提供了我的代码。
I have provided my code below.
<html>
<head>
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
<title>Write IT</title>
</head>
<body>
</body>
</html>
推荐答案
.ico文件的正确MIME类型为 image / vnd.microsoft.icon
。由于 image / x-icon
不是标准化的,因此最常见的是浏览器的宽恕,如果它实际工作,则不检查它。
The correct MIME-type for .ico files is image/vnd.microsoft.icon
. Since image/x-icon
is not standardized it's most often a leniency of a browser not checking for it if it actually works.
这篇关于为什么我的fav图标不能在Chrome中工作了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文