代码
在head
标签中加入link
标签,如下:
<head>
<link rel="icon" href="/favicon.png">
</head>
Other
//网站上显示logo图标
<link rel="shortcut icon" href="common/images/favicon.ico" type="image/x-icon">
//收藏用logo图标
<link rel="bookmark" href="common/images/favicon.ico" type="image/x-icon">