你如何让IE图标在所有版本的IE中显示? [英] How do you allow a fav icon to show in all versions of IE?

查看:96
本文介绍了你如何让IE图标在所有版本的IE中显示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您如何允许在所有版本的IE中显示收藏图标?
我已经在网站的根目录和子目录中插入了fav图标。它将显示在Chrome,Firefox和Safari中。但是,它不会显示在IE的任何版本中(我已经使用兼容性功能测试了IE 8和9之间的环境,以改变早期版本之间的环境)。如何使这项工作?

How do you allow a fav icon to show in all versions of IE? I have fav icons that has been inserted in the root and sub-directory within the website. It will display in Chrome, Firefox, and Safari. However, it will not display in any versions of IE (I have test IE 8 and 9 with changing the environments between earlier versions using the compatibility feature). How do I make this work?

我在我的HTML和标记中使用此代码:

I am using this code in my html and tags:

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

我有关于Stack Overflow的研究相关问题以及外部资源,他们同意在我的HTML。我想知道问题可能是什么。

I have research related questions on Stack Overflow as well as outside sources and they agree on the implementation used in my HTML. I am wondering what the problem could be.

推荐答案

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

您的favicon.ico必须放置在头标签
尺寸:16x16 + 32x32之间,颜色:256色和32位
,对于Internet Explorer,它必须是透明的(外部白色部分应该不可见)。

Your favicon.ico must be placed between head tag size : 16x16 + 32x32, colors: 256colors and 32-bit and for Internet Explorer it must be transparent (the outer white part should not visible)

这篇关于你如何让IE图标在所有版本的IE中显示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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