Favicon没有显示在Internet Explorer中

问题描述:

网站图标未在Internet Explorer上显示

Favicon is not showing on Internet Explorer

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

我尝试了很多尝试在IE上显示Favicon,但是失败了,有人可以知道解决方案

I tried lots to showing Favicon on IE but failed can anyone know solution on that

我在IE中遇到了同样的问题.就我而言,这是因为favicon.ico实际上具有image/png内容类型而不是image/x-icon.甚至当我使用图标编辑器创建它时.

I had the same problem in IE. In my case it was because the favicon.ico actually had a image/png content-type and not image/x-icon. Even when I created it with icon editors.

在使用 http://www.convertico.com/转换常规png文件后,它可以正常工作.

After converting a regular png file with http://www.convertico.com/ it worked.

请记住,尽管IE会非常严格地缓存它.您可能需要重新启动浏览器和/或清除缓存才能看到它.

Keep in mind though that IE caches this very strict. You might need to restart your browser and/or clear cache to see it.