-1

我将以下内容用于我的顶部菜单a链接:

 #sliding-navigation #filter-regista a  {
   width: 75px;
   height: 29px;
   background: transparent url("images/directors.png") no-repeat 0 0;
   text-indent: -9999px;
 }

谢谢

4

2 回答 2

1

您必须将样式应用于您的<a>而不是<li>

#sliding-navigation #filter-regista a {
    background: url("images/directors.png") no-repeat scroll 0 0 transparent;
    display: inline-block;
    height: 15px;
    overflow: hidden;
    text-indent: 101%;
    width: 75px;
}
于 2012-07-29T21:49:45.903 回答
1

你没有指向正确的标签。你应该指向你的 a 标签

于 2012-07-29T21:50:08.883 回答