Home > Web Front-end > HTML Tutorial > 浏览器显示tomcat的favicon.ico问题_html/css_WEB-ITnose

浏览器显示tomcat的favicon.ico问题_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:17:19
Original
2079 people have browsed it

在项目根目录下有favicon.ico文件,在页面的hear里加上favicon.ico" type="image/x-icon" /> ,浏览器可以显示的图标

但是favicon.ico是后加上去的,每个页面都加, 工作量有点太大了 。如果在公共的heard.jsp上加,IE没问题,谷歌就不显示了

因为heard.jsp是在每个页面里引用的 ,heard.jsp的内容算在了body里 及时在heard.jsp的hear里设置也不行,

各位大神有没有什么好的解决办法!!


回复讨论(解决方案)

放根目录不需要设置link

放到root下面就好使,tomcat下的root不知道谁给删除了。我又重新加上之后,替换文件 好使了

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template