文本框的CSS

use*_*010 3 css css-selectors

如何为所有文本框添加css规则?
我知道 :

input{}
Run Code Online (Sandbox Code Playgroud)

是所有的输入,但如果我特别想要type ="text"?

Qua*_*cal 11

使用属性选择器:

input[type="text"]
{
  /* ... */
}
Run Code Online (Sandbox Code Playgroud)


sbe*_*v01 6

input[type="text"] { color: orange; }
Run Code Online (Sandbox Code Playgroud)