Html Favicon不在IE10及以下版本的网页上工作

Html Favicon不在IE10及以下版本的网页上工作,html,internet-explorer-8,internet-explorer-9,internet-explorer-10,favicon,Html,Internet Explorer 8,Internet Explorer 9,Internet Explorer 10,Favicon,为什么此网页上的favicon在IE10及更低版本中不起作用?网页是。它可以在IE11和其他主要浏览器中使用 以下是页面顶部的代码: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html dir="ltr" xmlns="http://www.w3.org/1999/xhtml" lang="e

为什么此网页上的favicon在IE10及更低版本中不起作用?网页是。它可以在IE11和其他主要浏览器中使用

以下是页面顶部的代码:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml" lang="en"> 
    <head>
        <title>...</title>
        <meta http-equiv="X-UA-Compatible" content="IE=8,IE=9" >
        <!-- (various stylesheet, script, and meta declarations) -->
        <link rel="Shortcut Icon" href="/riteAid-theme/images/custom/riteaid.ico" />
        <!-- (more stylesheets and scripts) -->
        <link rel="canonical" href="..." />
    </head>
我尝试过但没有成功的事情:

在链接声明中设置type=image/x图标。 在链接声明中设置rel=图标。 将声明放在更高的位置。 将图标名称更改为favicon.ico
我在尝试之间使用了一个新的虚拟机实例,因此缓存不是问题。

看起来.ico文件的格式是错误的PNG或GIF。请参阅。

您是否尝试过将rel小写,但不知道这是否真的会产生影响?这是我通常使用的声明,适用于所有浏览器:。它也可能是一个编码错误的.ico文件。您也可以始终对图像使用.png