html - Web Folder Structure -


i working on code images referred preceding "/"

eg:

<img alt="" class="repositioned" src="/images/top-b-strip.jpg" /> 

i have wamp server run code , find image not coming correctly until remove prceeding "/" before images.

 <img alt="" class="repositioned" src="images/top-b-strip.jpg" /> 

can explain missing here?

putting "/" @ start of path denotes it's absolutely situated @ root of server. instance, http://www.example.com/images/top-b-strip.jpg, may have them http://www.example.com/somesubaccount/images/top-b-strip.jpg.

you can read more absolute versus relative paths at, instance, http://www.communitymx.com/content/article.cfm?cid=230ad


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -