Favicon没有显示在IE9的地址栏中-却在所有其他浏览器中显示 [英] Favicon not showing up in address bar in IE9 - yet is displayed there in all other browsers

查看:54
本文介绍了Favicon没有显示在IE9的地址栏中-却在所有其他浏览器中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这真的很奇怪-我已经尝试了所有我能想到的.我在Firefox,Chrome或Opera中对此没有任何问题.而且,当我更改服务器上的图标时,它会立即在其他浏览器上更新,但仍不会在IE9中显示.

This one is really odd - and I've tried everything I can think of. I have no issues with this in Firefox, Chrome or Opera. And when I change the icon on the server, it is updated immediately on the other browsers, but still doesn't show up in IE9.

偶然地,当我将图像添加到IE9中的收藏夹"中时,该图像显示在收藏夹"列表中-只是不会显示在URL地址栏中.我还验证了ico文件可用于其他网站.每次进行更改时,我也会忠实地清除IE浏览器的历史记录/Internet临时文件.这是我在.ASPX文件中尝试过的几个代码版本.第一个版本正在我正在运行的另一个ASPX网站上运行:

Incidentally, the image is displayed in my "favorites" list when I add it to favorites in IE9 - it just won't show up in the URL address bar. I've also verified that the ico file works for another website. I've also faithfully cleared the IE browser history/temporary internet files each time I've made a change. Here are a couple of the code versions that I've tried in the .ASPX file. The first version is working on another ASPX web site that I'm running:

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

推荐答案

尝试放置绝对路径而不是相对路径:

Try putting absolute path and not relative path:

<link rel="SHORTCUT ICON" href="http://www.mydomain.com/myicon.ico"/>

此外,您将图像放在哪里.我记得,它将根据网络浏览器自动从服务器上的某个位置拉出.

Also, where did you put the image. From what I recall, it will automatically pull from a certain location on your server depending on the web browser.

这篇关于Favicon没有显示在IE9的地址栏中-却在所有其他浏览器中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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