首页 > Web开发 > 详细

[CSS] :not Selector

时间:2016-02-04 06:42:35      阅读:265      评论:0      收藏:0      [点我收藏+]

The CSS :not() selector allows us to exclude a subset of elements matched by our selector. In this example we refactor two selectors down to one using the CSS :not() selector.

 

.FruitList li:not(:nth-child(2)) {
  border-bottom: 1px solid red;
}

 

[CSS] :not Selector

原文:http://www.cnblogs.com/Answer1215/p/5180883.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!