Specify multiple attribute selectors in CSS

后端 未结 5 622

What is the syntax for doing something like:

input[name=\"Sex\" AND value=\"M\"]

Basically, I want to select the input element

5条回答
  •  臣服心动
    2020-11-27 11:01

    Just to add that there should be no space between the selector and the opening bracket.

    td[someclass] 
    

    will work. But

    td [someclass] 
    

    will not.

提交回复
热议问题