local (file://) website favicon works in Firefox, not in Chrome or Safari- why?

后端 未结 7 1457
-上瘾入骨i
-上瘾入骨i 2020-11-27 18:15

The Question

When my website is local (using the file:// protocol), the favicon doesn\'t show up in Chrome or Safari, but it works in Firefox (all on a

7条回答
  •  伪装坚强ぢ
    2020-11-27 18:31

    Works In Chrome All you need is a folder with the icon and the website then the html should look like this (MAKE SURE THE ICON IS NAMED favicon.ico !)

    link rel='shortcut icon' type='image/x-icon' href='C:\Website/favicon.ico

提交回复
热议问题