为什么我的favicon不出现在IE7 / 8中? [英] Why isn't my favicon appearing in IE7/8?

查看:170
本文介绍了为什么我的favicon不出现在IE7 / 8中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

感兴趣的页面: https://www.gsb-yourbank.com/test/

ICO档案: https://www.gsb-yourbank.com/test/favicon.ico

我的favicon是一个16x16分辨率的16色ICO文件。无论我做什么,它都不会出现在IE 7/8中!我已经尝试了我能想到的一切,包括:

My favicon is a 16x16 resolution, 16-color ICO file. It will not appear in IE 7/8 no matter what I do! I've tried everything I can think of, including:


  • 使用各种
    不同的实用程序生成ICO,

  • 使用favicon
    中的绝对,相对和根相对URL更改文档头中的favicon链接元素的语法

  • 链接元素,

  • 使用PNG而不是ICO文件,

  • 确保我以二进制模式通过FTP上传文件,

  • generating the ICO with a variety of different utilities,
  • changing the syntax of the favicon link elements in the document head,
  • using absolute, relative, and root-relative URLs in the favicon link elements,
  • using a PNG instead of an ICO file,
  • ensuring that I am uploading the file via FTP in binary mode,

作为一名长期的网络开发人员/程序员,我无法相信这会让我感到沮丧。任何帮助将不胜感激。

As a longtime web developer/programmer, I can't believe that this is tripping me up. Any help would be greatly appreciated.

推荐答案

原始IE规范声明IE支持的书签图标扩展名将查找名为favicon.ico,应该是一个图标文件,位于网站的根目录,即www.example.com/favicon.ico。

The original IE specification stated the bookmark icon extension supported by IE would look for a file called "favicon.ico", which should be an icon file, in the root of the website, i.e. www.example.com/favicon.ico.

Mozilla接受了这个规范,但扩展它以使用html文档中的标记,以便可以使用任何文件,并在访问网站时在地址栏旁边显示书签图标。 Mozilla随后将其作为新的标准规范提交,声明可以使用任何16x16图像文件。然后Mozilla编写了他们的所有者浏览器以接受任何大小的图像,以便遵循建议标准的浏览器可能会在Mozilla / Firefox显示的网站上中断。

Mozilla embraced this specification, but extended it to use a tag in the html document so that any file could be used, and had the bookmark icon appear beside the address bar when visiting the site. Mozilla then submitted this as a new standard specification, stating that any 16x16 image file could be used. Then Mozilla wrote their owner browser to accept images of any size, so that browsers following the proposed standard could break on sites that Mozilla/Firefox displayed just fine.

这称为一个开放的标准。

This is called an "open" standard.

这篇关于为什么我的favicon不出现在IE7 / 8中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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