css3伪类:not

码农K

关注

阅读 75

2023-06-26


 

    http://www.w3.org/TR/css3-selectors/

 

css3伪类:not

 

     语法

 

//an E element that does not match simple selector s
E:not(s)

 

 

 

    代码示例

 

    

//input里面排除掉button
input:not([type="button"]){
	border:1px solid red;
}

 

 

相关推荐

精彩评论(0)

0 0 举报