Html 如何更改空白页的图标?
当我在Google Chrome中打开一个HTML文档时,打开的选项卡左侧没有任何图标,我如何设置它?您需要在HTML的标题部分设置HTML的标题和图标:Html 如何更改空白页的图标?,html,Html,当我在Google Chrome中打开一个HTML文档时,打开的选项卡左侧没有任何图标,我如何设置它?您需要在HTML的标题部分设置HTML的标题和图标: <head> <title>Your custom title</title> <link rel="shortcut icon" type="image/png" href="favicon.png"> </head> 您的自定义标题 并将favicon.png放在html页
<head>
<title>Your custom title</title>
<link rel="shortcut icon" type="image/png" href="favicon.png">
</head>
您的自定义标题
并将favicon.png放在html页面的同一文件夹中。您需要在末尾添加一个带有.ico的favicon图像。 添加如下内容:
<head>
<title>~~~~</title>
<link rel="shortcut icon" type="image/png" href="favicon.ico">
</head>
~~~~
将名为favicon.ico
的图像放在HTML文件所在的同一目录中。