背景图片网址链接问题

时间:2011-08-01 10:29:55

标签: html css

请查看网络应用程序并给我一些链接图像文件的提示。因为我想以某种方式联系,例如 在

 myHtml.html
 <div id = "myID" style="background:url('/imageFolder/myImage1.jpg')" > </div>

 Web Application(myProject)
     |
     |_____htmlFolder
     |         |
     |         |_______myHtml.html  // i have to link a image file url in this page from other folder 
     | 
     |_____Image Folderr
               |
               |_______myimage1.jpg   

1 个答案:

答案 0 :(得分:1)

Try this, it will work: 

<div id = "myID" style="background-image:url('../imageFolder/myImage1.jpg')" > </div>