仅需在title中加一句,如下:仅仅在google浏览器起作用了
<title>struts2测试页面</title>
<link rel="shortcut icon" href="<%=path %>/image/horse.ico" type="image/x-icon"/>
本文介绍了一种在Struts2应用中为特定页面设置图标的方法。通过在页面的title标签中加入一行代码,可以成功地在Google浏览器中显示自定义的页面图标。
仅需在title中加一句,如下:仅仅在google浏览器起作用了
<title>struts2测试页面</title>
<link rel="shortcut icon" href="<%=path %>/image/horse.ico" type="image/x-icon"/>
3645

被折叠的 条评论
为什么被折叠?