添加的图标会显示在标题左边,收藏页面时也会存在

方法:

在<head></head>内添加link标签。设置rel为icon。href指定图片url,type指定icon类型

如,与html同目录下有img文件夹,里面包含了google-icon.png

1 <link rel="icon" type="image/png" href="img/google-icon.png"/>

 

http://www.w3.org/2005/10/howto-favicon

相关文章:

  • 2021-12-28
  • 2022-12-23
  • 2021-11-11
  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
  • 2021-10-31
猜你喜欢
  • 2021-12-05
  • 2021-07-13
  • 2021-11-21
  • 2021-12-28
  • 2022-12-23
  • 2022-12-23
  • 2022-02-17
相关资源
相似解决方案