Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
404 views
in Technique[技术] by (71.8m points)

css - :not()伪类可以有多个参数吗?(Can the :not() pseudo-class have multiple arguments?)

I'm trying to select input elements of all type s except radio and checkbox .

(我试图选择除radiocheckbox之外的所有type s的input元素。)

Many people have shown that you can put multiple arguments in :not , but using type doesn't seem to work anyway I try it.

(许多人表明,您可以在:not多个参数,但是无论如何我尝试都不能使用type 。)

form input:not([type="radio"], [type="checkbox"]) {
  /* css here */
}

Any ideas?

(有任何想法吗?)

  ask by delphi translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Why :not just use two :not :

(为什么:不只是使用两个:not :)

input:not([type="radio"]):not([type="checkbox"])

Yes, it is intentional

(是的,这是故意的)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...