代码:<link rel="icon" type="image/png" sizes="16x16" href="./favicon.ico">
注意:
- 它不是iconfont字体 也不是图片。
- 位置是放到 head 标签中间。
- 后面的type="image/x-icon" 属性可以省略。
- 为了兼容性,请将favicon.ico 这个图标放到根目录下。
- 在网址后面键入favicon.ico回车可以获取该网站的图标:http://www.jd.com/favicon.ico
自己制作图标(转换ico图标)
我们可以自己做的图片,转换为 ico图标,以便放到我们站点里面。 http://www.bitbug.net/