I have a menu on a site. It has a divider on the right of the li, this is set as a background. When you hover over this it disappears and the link is highlighted.
人们还想的是,左边的利底是什么也消失了,我如何能够这样做?
.menu-link ul li
{
text-decoration:none;
float:left;
background: url(/Content/img/border-line-inside.png) no-repeat right;
}
.menu-link ul li a {
color:#fff;
padding: 0px 15px 0px 15px;
line-height:40px;
display: block;
width:128px;
text-align:center;
}
.menu-link a:hover{
background:url(../img/menu-nav-hov.png) repeat-x;
cursor:pointer;
}
想象力是否有必要使用 j?