在网站根目录下添加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" />
转载于:https://www.cnblogs.com/s0611163/p/6229059.html