favicon.ico详解:
favicon是Favorites Icon的缩写,favicon.ico是指显示在浏览器收藏夹、地址栏和标签标题前面的个性化图标。
设置步骤:
1. 把做好的favicon.ico图标文件上传到网站根目录;
2. 然后把以下代码放到网页Html代码中的<head>部分:
(常见的浏览器如IE、Firefox、360、Chrome都适用)
1
2
3
4
|
<
head
>
<
link
rel
=
"icon"
href
=
"img/favicon.ico"
type
=
"image/x-icon"
>
<
link
rel
=
"shortcut icon"
href
=
"img/favicon.ico"
type
=
"image/x-icon"
>
</
head
>
|