Why isn't my favicon appearing in IE7/8?

∥☆過路亽.° 提交于 2019-12-02 03:13:38

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 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.

Make sure that the IE you're using hasn't cached the fact that the site didn't have a favicon before you put one there. It sounds dumb, but this actually happens. Clearing cache/restarting the browser should solve it in that case.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!