在网页代码<head></head>中
加入jsp例子:<link href="<%=basePath%>/image/1.ico" rel="shortcut icon" type="image/x-icon"/>就可以了
html例子:<link rel="shortcut icon" href="ico/11.ico" type="image/x-icon"> //type="image/x-icon" 这个可要可不要
效果如下:
在网页代码<head></head>中
加入jsp例子:<link href="<%=basePath%>/image/1.ico" rel="shortcut icon" type="image/x-icon"/>就可以了
html例子:<link rel="shortcut icon" href="ico/11.ico" type="image/x-icon"> //type="image/x-icon" 这个可要可不要
效果如下: