Favicon没有显示在Internet Explorer中 [英] Favicon is not showing in Internet Explorer

查看:94
本文介绍了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.

这篇关于Favicon没有显示在Internet Explorer中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆