仅在 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 */
}
关于html - 仅在 IE-10 及以上浏览器中更改禁用的选择元素的字体颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32986221/