如果select::-ms-expand
被禁用,我如何更改背景颜色?
select::-ms-expand{
background: #f60;
}
答案 0 :(得分:2)
只需在:disabled
之前添加::-ms-expand
,就像这样:
select:disabled::-ms-expand {
background: #f60;
}

<select>
<option>Enabled</option>
</select>
<select disabled>
<option>Disabled</option>
</select>
&#13;