开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜