仅在IE-10及更高版本的浏览器中更改禁用的选择元素的字体颜色
请找到以下html标记:

HTML:
<select disabled="disabled">
<option>One</option>
<option>Two</option>
<option>Three</option>
</select>

CSS :

select[disabled='disabled']{
    background-color:#FFF;
    color: #000;
}

最佳答案

can't use conditional comments了,所以下一个最佳选择似乎是:

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
   /* IE10+ specific styles go here */
}


资料来源:CSS Hacks for Targeting IE 10 and Above

10-05 20:45
查看更多