【发布时间】:2012-09-29 06:56:38
【问题描述】:
我刚刚将一个网站从我的计算机上传到远程服务器。
一切都在我的本地机器上运行,并且在远程服务器上运行 - 除了 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 背景不起作用! 有什么想法吗?
谢谢, 帕特里克
【问题讨论】:
-
只提供页面链接可能更容易。
标签: css