2016-11-17 55 views

回答

3

只需使用CSS :not選擇

CSS

a[target="_BLANK"]:not(.skip-this) { 
    color: red; 
} 

a[target="_BLANK"]:not(.skip-this) { 
 
    color: red; 
 
}
<a href="" target="_BLANK" class="skip-this">Hello</a> 
 
<a href="" target="_BLANK">Hello</a>