hddkman

html设置网页标题栏logo(图标)

https://blog.csdn.net/dsdsds111/article/details/86713155?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-2.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-2.control

在页面head中添加link

<link rel="shortcut icon" href="图标地址" type="image/x-icon">
  • 1

ps:这种方法中,图标地址可在线,也可是本地的
例:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="shortcut icon" href="http://www.runoob.com/images/tryitimg.gif" type="image/x-icon">
    <title>这是一个带图片的标签</title>
</head>
<body>
...
...
...
</body>
</html>
发表于 2021-01-13 17:31  hddkman  阅读(1835)  评论(0编辑  收藏  举报
 

分类:

技术点:

相关文章:

  • 2022-01-11
  • 2021-09-01
  • 2021-12-01
  • 2021-10-06
  • 2022-01-31
  • 2021-12-18
  • 2022-02-11
  • 2021-12-25
猜你喜欢
  • 2021-12-21
  • 2022-01-20
  • 2021-06-21
  • 2021-04-21
  • 2021-04-21
  • 2021-12-31
  • 2022-02-11
  • 2021-03-30
相关资源
相似解决方案