0

我正在尝试更改下拉菜单的背景颜色....

http://jsfiddle.net/3VBQ6/4/

#nav li:hover ul.sub li {
    display:block;
    height:20px;
    position:relative;
    font-weight:normal;
}
#nav li:hover ul.sub li a {
    display:block;
    font-size:11px;
    height:18px;
    line-height:18px;
    text-indent:5px;
    color:#000;
    text-decoration:none;
    border:1px solid #bbd37e;
}
#nav li ul.sub li a.fly {
    background:#bbd37e url(arrow.gif) 80px 6px no-repeat;
}
#nav li:hover ul.sub li a:hover {
    background:#e3e3e3;
    color:#fff;
    border-color:#fff;
}
#nav li:hover ul.sub li a.fly:hover {
    background:#6a812c url(arrow_over.gif) 80px 6px no-repeat;
    color:#fff;
}
4

1 回答 1

1

Try this ..

#nav li:hover ul.sub {
  background: #00E248;
}

FIDDLE

于 2013-04-10T18:18:42.770 回答