我刚刚从我的电脑上传了一个网站到远程服务器。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