还有一个“为什么我的Favicon不显示?” [英] Yet Another "Why isn't my Favicon showing?"

查看:298
本文介绍了还有一个“为什么我的Favicon不显示?”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我刚刚尝试将我的网站固定到任务栏(删除后),但是当我点击时按住地址栏内16x16px图标上的鼠标按钮(见下图),您可以看到我的图标被鼠标拖动 - 所以Internet Explorer找到并获得了图标 - 它只是没有显示在右边地方!还更新了以下代码:


I have just tried "Pinning" my site to the Taskbar again (after removing it) but when I clicked and held down the mouse button on the 16x16px icon inside the address bar (see pic below), you can see my favicon being dragged around with the mouse - so internet explorer has found and got the icon - it's just not displaying it in all the right places! Also updated code below:

正如标题所示,我无法显示我的图标;在任何版本的任何浏览器中。但是有一个例外 - 这还不够好:

As the title suggests, I can't get my favicon to display; in any version of any browser. There is 1 exception, though - which isn't good enough:

IE 9和IE 10 -

IE 9 and IE 10 -

正如您可能在上面的屏幕截图中看到的那样,只有 时间我看到我的favicon是在我将它添加到我的收藏夹文件夹并打开收藏夹栏之后。 favicon在选项卡(页面标题旁边)中显示,它不显示在任务栏区域,如果我有它不显示在浏览器窗口的左上角将我的网站固定到任务栏。

As you can probably see in the screenshot above, the only time I get to see my favicon is after I've added it to my Favorites folder and opened the Favorites Bar. The favicon does not display in the Tab (next to the page title), it does not display in the Taskbar area, and it does not display up the top-left of the browser window if I have "Pinned" my site to the Taskbar.

在所有其他浏览器中,它根本不显示。

In every other browser, it simply does not display at all.

我已经尝试了一些我可以在网上找到的解决方案。

I have tried every possible "solution" that I could find online.

这是我的代码:

    <link rel="icon" type="image/x-icon" href="http://www.mysite.com/favicon.ico"><!-- Major Browsers -->
    <!--[if IE]><link rel="shortcut icon" href="http://www.mysite.com/favicon.ico"/><![endif]--><!-- Internet Explorer-->

我还尝试了所有常用尺寸的图标; 16x16 32x32 64x64 128x128 256x256 - 我甚至尝试在相同的 *。ico file。

I have also tried all common sizes for the favicon; 16x16, 32x32, 64x64, 128x128 and 256x256 - and I've even tried saving all sizes within the same *.ico file.

我尝试删除 *。ico 文件的缓存文件。

I have tried deleting the cache file for *.ico files.

没有任何效果。完全相同的代码以前曾在我做过的其他网站上工作过。我不明白。给出了什么?

Nothing has worked. The exact same code has previously worked on other sites that I've made. I don't get it. What gives?

推荐答案

我编辑了这个答案,只留下了问题的解决方案。

使用:< link rel =快捷图标href ={ICONURL}/>

而不是:< link rel =iconhref ={ICONURL}/>

这篇关于还有一个“为什么我的Favicon不显示?”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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