简体   繁体   中英

Images not displaying and not loading html src

I have just uploaded two images to my website in "images" folder. I'm trying to display them using img tag -but all I'm getting is broken tag. So I have tried to open the image in a new tab using it's URL. But the URL kept on loading forward and backward and finally stopped displaying a blank page. Please help

 <img src="images/guestbook4.jpg" width="129" height="63" name="MyImage5">

Here's the URL to the image I've uploaded 上传图像的网站文件的快照

your image directory is in the root. so you can access to it from the root or from the current path.

when you set image src to example/avatar.png , that means, example folder exist in current path. so the request will send to example directory in current path. if your code file not be in the same directory that example directory exist in, this problem occur.

if you use /example/avatar.png , that means, example folder exist in root. so the request will send to example directory in root path.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM