在网站根目录下添加favicon.ico文件,并在网页添加如下代码:
<link rel="bookmark" href="~/favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="~/favicon.ico" type="image/x-icon" /> <link rel="icon" href="~/favicon.ico" type="image/x-icon" />
在网站根目录下添加favicon.ico文件,并在网页添加如下代码:
<link rel="bookmark" href="~/favicon.ico" type="image/x-icon" /> <link rel="shortcut icon" href="~/favicon.ico" type="image/x-icon" /> <link rel="icon" href="~/favicon.ico" type="image/x-icon" />