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