代码 在head标签中加入link标签,如下: 登录后复制 <head> <link rel="icon" href="/favicon.png"> </head> 1.2.3. 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"> 1.2.3.4. 原创作者: zicl 转载于: https://blog.51cto.com/zicl/11825164