日期:2014-05-18  浏览次数:20632 次

jsp页面里的图片显示不了
<p> <img   src= "../IT518.png "   alt= "网站logo "   width= "187 "   height= "106 "> <img   src= "../lenvon.png "   alt= "联想广告 "   width= "559 "   height= "115 "> </p>

图片就在文件夹里面,用tomcat发布上去,在访问的话就只会显示文字,不知道为什么

------解决方案--------------------
你的img标签没有结束
------解决方案--------------------
在jsp页面的同一目录建立存放图片的文件夹pic
<p> <img src= "pic/IT518.png " alt= "网站logo " width= "187 " height= "106 "> <img src= "pic/lenvon.png " alt= "联想广告 " width= "559 " height= "115 "> </p>


------解决方案--------------------
<p>
<img src= "../IT518.png " alt= "网站logo " width= "187 " height= "106 "> </img>
<img src= "../lenvon.png " alt= "联想广告 " width= "559 " height= "115 "> </img>
</p>

你这里用的../图片路径,那么你就要保证本网页文件与图片不在同一文件夹下,可以用 http://www.xxx.com/it518.png 的形式测试下