无法加载Gived URL [英] Failed to load gived URL
本文介绍了无法加载Gived URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想将图片放入我的项目网页中
i want to place images in my project web pages
我不知道如何指向路径到图片的正确地址
i dont know how to point\path to the correct address of the image
我把所有这些文件夹中的图像,但我没有看到图像和
,当我检查它与火虫,我看到浏览器无法加载URL。 p>
i put the image in all of those folders but yet i dont see the image and when i inspect it with fire bug i see that the browser failed to load the url.
<img src="../calendar_schedule.png"> <img src="calendar_schedule.png">
<img src="admin/calendar_schedule.png">
只有当我使用此路径时,我才能看到图像 - 但它不能成为
only when i use this path i can see the image - but it cant be the way
<img src="http://localhost:2734/Admin/Style/calendar_schedule.png">
推荐答案
如果您使用
If you use
<img src="Admin/Style/calendar_schedule.png">
它会像这样附加到您的网址:
it will append to your url like this:
http://localhost:2734/ExamplePage1/Admin/Style/calendar_schedule.png
您可以使用第一个 /
直接附加到主机名
You can use with first /
to append directly to hostname
<img src="/Admin/Style/calendar_schedule.png">
它看起来像这样:
And it looks like this:
http://localhost:2734/Admin/Style/calendar_schedule.png
这篇关于无法加载Gived URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文