:not( .banner-nav-not ) .banner-nav a{
color: red;
}

<div class="banner-nav clearfix">
<ul>
<li><a class="banner-nav-not" href="#">how we can help? <span>what we offer</span></a></li>
<li><a href="#">mobile technologies</a></li>
<li><a href="#">corporate training</a></li>
<li><a href="#">online marketing</a></li>
<li><a href="#">graphic design</a></li>
</ul>
</div>
&#13;
我想选择每一个&#34; a&#34;标签除了班级&#34; .banner-nav-not&#34;。
答案 0 :(得分:1)
错误的订单。更改.banner-nav a:not( .banner-nav-not )
.banner-nav a:not( .banner-nav-not ) {
color: red;
}
&#13;
<div class="banner-nav clearfix">
<ul>
<li><a class="banner-nav-not" href="#">how we can help? <span>what we offer</span></a></li>
<li><a href="#">mobile technologies</a></li>
<li><a href="#">corporate training</a></li>
<li><a href="#">online marketing</a></li>
<li><a href="#">graphic design</a></li>
</ul>
</div>
&#13;