仅在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;
}发布于 2015-10-07 18:01:54
你不再使用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
https://stackoverflow.com/questions/32986221
复制相似问题