Home  >  Article  >  Web Front-end  >  myeclipse写jsp页面,插入背景图片后在myeclipse中能够显示,但在浏览器中打开却不显示_html/css_WEB-ITnose

myeclipse写jsp页面,插入背景图片后在myeclipse中能够显示,但在浏览器中打开却不显示_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 09:01:252845browse

在jsp中写了

,在myeclipse中能显示出来背景图片,但在浏览器中显示不出来
工程路径为F:\MyEclipse文件\MessageBoard
jsp路径为F:\MyEclipse文件\MessageBoard\WebRoot\Messages.jsp
图片路径为F:\MyEclipse文件\MessageBoard\WebRoot\1.jpg
应该怎么写才能在浏览器中显示呢???
网上说什么相对路径绝对路径的,但我刚学不懂,谁能直接发代码


回复讨论(解决方案)

在tomcat的server.xml文件中,host标签下添加然后改div 

Statement:
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