为什么这个BG图像不会显示?

Jar*_*red 0 html css

这是我的HTML:

                <div id="leftMenuWrapper">
                    <div id="ramps" class="leftMenuHeaderButton"></div>
                    <div id="carServiceRamps" class="leftMenuSubButton"></div> <div class="clear"></div>
                    <div id="67RaceRampsXT" class="leftMenuProductButton"></div>
                </div>
Run Code Online (Sandbox Code Playgroud)

这是我的CSS:

#leftMenuWrapper{
background:url(../images/main_elements/leftMenu_BG.jpg) repeat-y;
border:#777777 thin solid;
width:160px;
margin-left:-19px;
position:absolute;
padding-bottom:5px;
}

.leftMenuHeaderButton{
width:175px;
height:35px;
position:relative;
top:-16px;
left:-11px;
}
    #ramps{
    background:url(../images/main_elements/leftMenu/Ramps.png) no-repeat;
    }


.leftMenuSubButton{
width:169px;
height:21px;
position:relative;
float:right;
left:1px;
}
    #carServiceRamps{
    background:url(../images/main_elements/leftMenu/car-service-ramps.png) no-repeat;
    }

.leftMenuProductButton{
width:160px;
height:20px;
clear:both
}

    #67RaceRampsXT{
    background:url(../images/main_elements/leftMenu/67-Race-Ramp-XTs.jpg) no-repeat;
    width:160px;
    height:20px;
    }

.clear{clear:both}
Run Code Online (Sandbox Code Playgroud)

一切正常,除了 <div id="67RaceRampsXT" class="leftMenuProductButton"></div>不显示它的BG图像(它甚至不会显示BG颜色).元素在那里,因为如果我调整大小,它会相应地调整,但它不会在FF或Chrome中显示图像.

我可以把<IMG>它放在里面没有问题,我甚至可以分配一个BG .leftMenuProductButton但不是#67RaceRampsXT

Ada*_*iss 6

我不认为ids可以从数字开始.尝试将您的内容更改id为类似内容RaceRamps67XT并以此方式进行测试 - 在HTML和CSS中查看它的作用.