我剛剛從我的電腦上傳了一個網站到遠程服務器。css中的一些背景圖片不會加載
一切工作在我的本地機器上,並在遠程服務器上工作 - 除了1背景圖像!
所有圖像位於相同的目錄中,具有相同的權限。只是'Main-Header-graphic.jpg'不起作用。我有這個在我的CSS:
/* this works */
#top_header #logo {
float: left;
background: url(../img/Logo.png) no-repeat;
width: 403px;
height: 52px;
text-indent: -9999px;
}
/* this doesn't!
if i replace the "../img/Main-Header-graphic.jpg" below with another image, eg.
the "../img/Logo.png" above, it works! */
#middle_header {
margin-top: 10px;
height: 280px;
background: url(../img/Main-Header-graphic.jpg) no-repeat;
}
所以你看的路徑圖像都是相同的,並與所有其他背景圖像格式相同的工作。只是middle_header背景不起作用! 有什麼想法?
感謝, 帕特里克
只是提供一個鏈接到頁面可能會更容易。 – 2010-11-28 13:11:08