using favicon with css

前端 未结 4 910
Happy的楠姐
Happy的楠姐 2020-12-14 06:07

I want to set the favicon for a fairly large number of pages. But, instead of using the HTML tag

4条回答
  •  庸人自扰
    2020-12-14 06:44

    You can't set a favicon from CSS - if you want to do this explicitly you have to do it in the markup as you described.

    Most browsers will, however, look for a favicon.ico file on the root of the web site - so if you access http://example.com most browsers will look for http://example.com/favicon.ico automatically.

提交回复
热议问题