adding image to eclipse web project

坚强是说给别人听的谎言 提交于 2019-12-05 06:19:55

You should in general try to avoid absolute paths. Specifically I believe from a normal web project you should try something like:

<img border="0" src="images/network.jpg"
     alt="Pulpit rock" width="304" height="228">

Which works like a charm for me.

You have to add the image within the eclipse project structure for eclipse to package it and have it available on the webserver. Just having the image on your local file system doesn't work. To do this, drag and drop the file from your file system onto the eclipse project tree folder.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!