I am making a simple HTML webpage, I am trying to add an icon in the browser tab, I can get the icon to appear if I use a picture from online. However when I try to use a local file the icon is not visible. Here is what I used to try and embed the icon
new Foo2();
Any help is appreciated, thanks
答案 0 :(得分:1)
您的代码适用于最近的Firefox。
问题可能是路径中的前导斜杠使浏览器在服务器根目录中搜索它?
<link rel="icon" type="image/vnd.microsoft.icon" href="icon.ico" />