Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/85.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html favicon.ico无法在Internet explorer 7上显示_Html_Css - Fatal编程技术网

Html favicon.ico无法在Internet explorer 7上显示

Html favicon.ico无法在Internet explorer 7上显示,html,css,Html,Css,我可以在Firefox上毫无问题地显示图标,但在InternetExplorer7上,图标无法显示。有人能粘贴代码并在Internet Explorer 7上试用吗?我做了什么 <html> <head> <link rel="shortcut icon" type="image/vnd.microsoft.icon" href="http://yourhtmlsource.com/favicon.ico"/> </head> <

我可以在Firefox上毫无问题地显示图标,但在InternetExplorer7上,图标无法显示。有人能粘贴代码并在Internet Explorer 7上试用吗?我做了什么

<html>
<head>
<link rel="shortcut icon" type="image/vnd.microsoft.icon"
      href="http://yourhtmlsource.com/favicon.ico"/>
</head>

<body>
</body>

</html>

试试这个:

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

在某些浏览器中,将GIF文件的JPEG保存为.ico可能有效。但是.ico实际上是一种不同的文件格式

请尝试此在线favicon生成器:


编辑:刚刚下载了你的图标。它具有正确的文件格式。但我也可以在IE7上看到你的图标(在Vista上)。

尝试清理缓存,favIcons会一直缓存到“永恒的尽头”


平心而论,我通常会将我的图标上传到并从那里重新下载。每次都有效

绝对要清除缓存,IE在检查新favicon方面有点笨拙。如果您没有使用IANA注册的“vnd.microsoft.icon”,则类型应为“image/x-icon”