【发布时间】:2020-01-30 14:27:03
【问题描述】:
如何在 SASS 中选择 <input type=checkbox disabled checked> 并设置其样式?
我试过了,但没有放任何样式:
input {
&:checked &:disabled{
background-color:red;
}
}
【问题讨论】:
-
你应该写
&:checked:disabled。但是复选框不响应background-color。