0
我怎麼可以這樣寫,因此針對這兩種元素,而無需編寫了兩次如何定位和輸入功能與同一個類中選擇元素
.field_with_errors input{
color: red;
background: #CEF6EC;
border: 1px solid red;
}
.field_with_errors select{
color: red;
background: #CEF6EC;
border: 1px solid red;
}
這不起作用
.field_with_errors select input{
color: red;
background: #CEF6EC;
border: 1px solid red;
}
感謝您的出色答案 – chell