【发布时间】:2013-11-20 12:58:10
【问题描述】:
我在 IE 中使用过以下代码,它仅适用于 IE 10,但不适用于 IE 8、9 - 选择下拉箭头至少要隐藏 IE9。请帮帮我。
<select class="dropDown">
<option>mango</option>
<option>banana</option>
<option>pomegranate</option>
<option>papaya</option>
</select>
select.dropDown {
outline : none;
overflow : hidden;
text-indent : 0.01px;
text-overflow : '';
background : #666;
-webkit-appearance: none;
-moz-appearance: none;
-ms-appearance: none;
-o-appearance: none;
appearance: none;
}
select.dropDown::-ms-expand
display: none;
}
【问题讨论】:
-
1.定义不起作用。 2. IE appearance 属性。 3. 将
text-indent值设置为0.01px没有意义。大于 0 的最小可能值为 1。 -
另见How to hide drop down arrow in ie9,这是一个精确的副本。
-
外观是新的。
标签: css