favicon不在IE中工作 [英] favicon not working in IE

查看:116
本文介绍了favicon不在IE中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用自定义favicon.ico的网站。 favicon在除IE之外的所有浏览器中均按预期显示。当试图在IE中显示favicon时,我得到了大红色x;当在另一个浏览器中显示favicon时,它显示得很好。页面源包含
,它可以在其他浏览器中使用。感谢您的想法。

I have a site using a custom favicon.ico. The favicon displays as expected in all browsers except IE. When trying to display the favicon in IE, I get the big red x; when displaying the favicon in another browser, it displays just fine. The page source includes and it does work in other browsers. Thanks for your thoughts.

编辑:已解决:问题的根源是该文件是jpg重命名为ico。我创建了一个ico文件,它按预期工作。感谢您的意见。

推荐答案

对,你没有那么有用(提供来源真的是真的很有用!)但是你去...有些事要检查:

Right you've not been that helpful (providing source would be have been really useful!) but here you go... Some things to check:

代码是这样的:

<link rel="icon" href="http://www.example.com/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="http://www.example.com/favicon.ico" type="image/x-icon" />

是否在< head>

图像是真正的 ico文件吗? (重命名位图不是真正的.ico!格式不同)

Is the image a real ico file? (renaming a bitmap is not a real .ico! Mildly different format)

将页面添加为书签时是否有效?

Does it work when you add the page as a bookmark?

这篇关于favicon不在IE中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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