背景

2012-12-21 44 views
1

我的客户希望把一个黑色背景的顶部导航栏下。它可以在 http://seasonlawn.com/CellularSolutionsHTML/catalog.html 有人可以帮助我如何在CSS代码这个背景

+0

UL下...图像加载失败 –

+0

林不知道你的意思,你能解释一下吗?即时通讯只有16我没有这方面的经验,我教我自己所有我知道的。 –

+0

其萤火虫检查链接回答 –

回答

0

添加背景颜色为该类

#main-nav .categorymenus{background-color:#000;} 
.categorymenus ul{here background image failed to load check this once} 
2

问题是你包含的是图像(.categorymenus ul)失败,包括/负载 你可以起诉firebug检查

enter image description here

你需要做什么被包括正确的路径一切是确定

enter image description here

那里也有很多像没还加载

enter image description here

+0

非常感谢! –

+0

@RobertLamb你的欢迎......也尝试接受答案whihc shole你的问题检查这个http://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work –

+0

您正在使用什么调试器?我想,与早先的探险之旅我eror控制台它从未表示 –

2

在文本编辑器中打开default.css文件并更改下面的代码:

#headertop { 
    width: 100%; 
    min-width: 1130px; 
    padding-bottom: 7px; 
    background: url("../images/topnav-rep.png") repeat-x left top transparent; 
    height: 32px; 
    position: fixed; 
    z-index: 99999; 
    top: 0; 
    left: 0; 
    border-top: 1px solid grey; 
    margin-top: -1px; 
} 

#headertop { 
    width: 100%; 
    min-width: 1130px; 
    padding-bottom: 7px; 
    background: #000000; 
    height: 32px; 
    position: fixed; 
    z-index: 99999; 
    top: 0; 
    left: 0; 
    border-top: 1px solid grey; 
    margin-top: -1px; 
} 

目前问题是../images/topnav-rep.png图像不可访问。在上面的行中,我们将删除图像并为#headertop元素黑色(十六进制 - >#000000)制作背景颜色。

+0

感谢所有这么多人一直在寻找甚至没有考虑检查我的.css中的链接,这很奇怪,因为它在本地机器上工作。 –

0
<div class="categorymenus" style="display: block;background: url("http://www.lacovachamiami.com/images/layout/lightBackgound.png") repeat ;">