样式选择:: - 禁用时的ms-expand [英] Style select::-ms-expand when disabled
本文介绍了样式选择:: - 禁用时的ms-expand的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当 select :: - ms-expand
禁用时,如何更改背景颜色?
select :: - ms-expand {
background:#f60;
}
解决方案
c: c: c: c:
$ <$> select:disabled :: - ms-expand {background:#f60;}
< select> < option>已启用< / option>< / select>< select disabled> < option>已停用< / option>< / select>
How do I change the background colour of select::-ms-expand
when it's disabled?
select::-ms-expand{
background: #f60;
}
解决方案
Simply add :disabled
before ::-ms-expand
, like so:
select:disabled::-ms-expand {
background: #f60;
}
<select>
<option>Enabled</option>
</select>
<select disabled>
<option>Disabled</option>
</select>
这篇关于样式选择:: - 禁用时的ms-expand的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文