1111
2222222
style中的代码在IE9中好使,在IE11中就不起作用,显示的字体还是黑色的
求大神帮忙。。。。
回复讨论(解决方案)
不要大惊小怪的,
option 闭合标签呢?
另外还有种!important写法,比内联权重要高的.
不要大惊小怪的,
option 闭合标签呢?
我只是粘贴了部分代码,在IE9中是好使的
我想实现的是,如果下拉框选中的是222222的时候,下拉框中的字体表示成红色
[selected=selected]{color:red;}
selected=selected
低版本IE不能全面支持CSS2.(IE67)
1111 2222222 document.getElementById("myselect").onchange = function(){ this.style.color = this.options[this.selectedIndex].style.color;}
1111 2222222 document.getElementById("myselect").onchange = function(){ this.style.color = this.options[this.selectedIndex].style.color;}大神呐!!!
查看更多关于关于IE11和IE9的差别导致css不好用的问题_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did108450