Adding favicon in website
Is there anyway to add favicon [GIF & ICO]开发者_StackOverflow中文版
through CSS or I need to add the tag in every HTML pages ?
The favicon can not be defined in CSS. If you want reliable behaviour, you should use the HTML tags.
Browsers will usually automatically look at /favicon.ico
if an icon isn't defined in HTML. Putting an .ico
file here will work in all browsers, but this won't work for other file types.
I am not sure about having the Icon in CSS but if you put the icon in the root folder of your site browsers will show the icon correctly. (As A ICO Format)
This has good information here http://en.wikipedia.org/wiki/Favicon
精彩评论