HTML设置网站标题前的logo

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/github_39611196/article/details/84259320

本文主要介绍在HTML网页中设置网站标题前的logo,主要分为两步:

一、将logo图片转换为ico格式:

在线转换网址:http://cn.faviconico.org/favicon

二、在<head></head>标签中添加如下代码:

<link rel="icon" type="image/x-ico" href="./static/image/cc.ico" />

其中,href设置为logo的地址。

参考,GitHub网站logo设置:

猜你喜欢

转载自blog.csdn.net/github_39611196/article/details/84259320