Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 仅在IE-10及以上浏览器中更改禁用的select元素的字体颜色_Html_Css_Browser - Fatal编程技术网

Html 仅在IE-10及以上浏览器中更改禁用的select元素的字体颜色

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

仅在IE-10及以上浏览器中更改禁用的select元素的字体颜色 请查找以下html标记:

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吗?