CSS:为文本和密码输入提供相同的宽度

CSS:为文本和密码输入提供相同的宽度,css,input,css-selectors,Css,Input,Css Selectors,我试图为文本和密码输入提供相同的宽度 所以我写下: input[type="text","password"]{ width: 138px; } 但它不起作用 有什么帮助吗 问候 Javi怎么样: input[type="text"], input[type="password"] { width: 138px; } 或者使用类/ID: input.text, input.password { width: 138px; } 怎么样 input[type="te

我试图为文本和密码输入提供相同的宽度

所以我写下:

input[type="text","password"]{

    width: 138px;

}
但它不起作用

有什么帮助吗

问候

Javi

怎么样:

input[type="text"], input[type="password"]
{
    width: 138px;
}
或者使用类/ID:

input.text, input.password
{
    width: 138px;
}
怎么样

input[type="text"],
input[type="password"]{
  width: 138px;
}
input[type="text"],
input[type="password"]{
  width: 138px;
}