菜单下的背景

时间:2012-12-21 06:09:16

标签: html css

我的客户希望在顶部导航栏下方添加黑色背景。它可以在 http://seasonlawn.com/CellularSolutionsHTML/catalog.html 有谁可以请帮助我如何在CSS中编码

4 个答案:

答案 0 :(得分:2)

问题是您包含的图像(在.categorymenus ul中)无法包含/加载 你可以起诉firebug来检查

enter image description here

你需要做的是包括正确的路径,其他一切都没问题

enter image description here

还有很多图像也无法加载

enter image description here

答案 1 :(得分: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)。

答案 2 :(得分:0)

为此课程添加背景颜色

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

答案 3 :(得分:0)

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