因此,对于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;不起作用。那么我能在这里做些什么呢?
发布于 2014-05-21 15:52:37
但是!,如果我们想增加宽度,我们不能这样做:
display:none
所以
select::-ms-expand {
/* IE 8 */
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
/* IE 5-7 */
filter: alpha(opacity=0);
/* Good browsers :) */
opacity:0;
}https://stackoverflow.com/questions/15351949
复制相似问题