0
点赞
收藏
分享

微信扫一扫

网站log图片问题:favicon.ico


如何在地址栏中显示网站的图标 [url]http://panyongzheng.iteye.com/blog/1152922[/url]

Tomcat中使用Favicon [url]http://ispring.iteye.com/blog/165015[/url]

做好图片,上传到[url]http://www.bitbug.net/[/url],转换成16*16格式的ico图片,存放到站点根目录。
然后html增加如下代码:

<link rel='icon' href='favicon.ico' type='image/x-icon' />
    <link   rel="Bookmark"  type="image/x-icon"  href="favicon.ico"/>
    <link rel='shortcut icon' href='favicon.ico' type='image/x-icon' />



在自己应用的web.xml或者tomcat的Conf下的web.xml中加入一下代码,然后重起tomcat。



<session-config> 
   <session-timeout>60</session-timeout> 
</session-config> 

<mime-mapping> 
    <extension>ico</extension> 
    <mime-type>image/x-icon</mime-type> 
</mime-mapping>

举报

相关推荐

0 条评论