问题
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>
回答1:
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.
来源:https://stackoverflow.com/questions/16020179/why-doesnt-my-fav-icon-work-in-chrome-any-more