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

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

WBOY
Release: 2016-06-21 09:01:25
Original
2933 people have browsed it

在jsp中写了

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


回复讨论(解决方案)

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

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