因此,有了Mozilla和WebKit,我有了一个相当不错的解决方案,使用appearance: none;
替换select
框上的箭头,并使用父元素.
在IE中,我在很大程度上禁用了这个功能.对于IE10,我实际上无法禁用它,因为我的条件注释实际上不起作用.
这是我的加价:
<!--[if lt IE 7 ]> <html class="ie6"> <![endif]-->
<!--[if IE 7 ]> <html class="ie7"> <![endif]-->
<!--[if IE 8 ]> <html class="ie8"> <![endif]-->
<!--[if IE 9 ]> <html class="ie9"> <![endif]-->
<!--[if (gt IE 9)]> <html class="ie10plus"> <![endif]-->
<!--[if !(IE)]><!--> <html> <!--<![endif]-->
类ie10plus
实际上并不是指向标记的方式.
我也觉得也许有一种合法的方式可以取代IE中的箭头.我并不反对实际解决问题.然而,appearance: none;
不起作用.那么我能在这里做些什么呢?