Html 仅在IE-10及以上浏览器中更改禁用的select元素的字体颜色
仅在IE-10及以上浏览器中更改禁用的select元素的字体颜色 请查找以下html标记:Html 仅在IE-10及以上浏览器中更改禁用的select元素的字体颜色,html,css,browser,Html,Css,Browser,仅在IE-10及以上浏览器中更改禁用的select元素的字体颜色 请查找以下html标记: HTML: <select disabled="disabled"> <option>One</option> <option>Two</option> <option>Three</option> </select> CSS : select[disabled='disabled']{ backg
HTML:
<select disabled="disabled">
<option>One</option>
<option>Two</option>
<option>Three</option>
</select>
CSS :
select[disabled='disabled']{
background-color:#FFF;
color: #000;
}
HTML:
一个
两个
三
CSS:
选择[disabled='disabled']{
背景色:#FFF;
颜色:#000;
}
你已经不再需要了,所以下一个最好的选择似乎是:
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
/* IE10+ specific styles go here */
}
来源:为什么您需要特定于浏览器的破解?您能粘贴最终的CSS吗?