CSS 背景 url 未显示

标签 css image background

我刚刚完成我的代码的上线,突然间 Logo 不再显示了。 (它在我的浏览器刺激器上运行良好。)如果有人知道我做错了什么,请告诉我,如果 Logo 不显示,网站就没有多大用处!!

CSS:

#header {
height: 150px;
margin-left: 15px;
background-image: url('../images/headings/header.gif');
background-repeat: no-repeat;
text-align: right;
padding-top: 10px;
padding-right: 50px;
}

HTML

<div id="header">
<a href="realtors.htm">Realtors Click Here</a><br /><br /><br /><br />
<p><a href="http://www.facebook.com/PrimaResidential"><img src="images/headings/facebook.png" alt="Facebook" width="100" height="70" /></a></p>
<p><a href="https://twitter.com/Prima_Updates"><img src="images/headings/twitter.png" alt="Twitter" width="100" height="70" /></a></p>
<p><a href="http://www.flickr.com/photos/prima_residential"><img src="images/headings/flickr.png" alt="Flickr" width="100" height="70" /></a></p>
</div>

标题中的其他一切都正常,我只是不知道为什么图像不起作用! Logo 是 CSS 中的背景图像,以防有人在寻找它!

谢谢!!

最佳答案

你确定你的路径是正确的吗?我看到您的其他图片正在从 images/headings/加载。尝试在您的 CSS 中将 ../images/更改为 images/。

关于CSS 背景 url 未显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12085604/

相关文章:

html - 悬停时如何使菜单项的整个宽度更改背景颜色?

jquery - bxslider 无法正常工作

image - 您认为分割多光谱航空图像的最佳方法是什么?

html - 创建半透明图像叠加层

image - Orchard 1.7 MediaLibrary 内容类型上的图像以替代形状显示

css - 包含 div 背景的两张图片?

ios - 在 iOS 中使用 Storyboard将图像设置为 TableView 的背景

css - 将 stylesheet.css 绑定(bind)到 html 中不起作用

html - 如何在导航栏中对齐图标

ruby-on-rails - Resque multiple workers in development 模式