我想从HTML <select>元素中删除下拉箭头.例如:
<select style="width:30px;-webkit-appearance: none;">
<option>2000</option>
<option>2001</option>
<option>2002</option>
...
</select>
Run Code Online (Sandbox Code Playgroud)
如何在Opera,Firefox和Internet Explorer中完成?

我有选择元素,我想删除箭头,然后我可以添加其他图标..我可以为Firefox Safari和Chrome做到这一点,但这在IE9上不起作用.
.styled-select select
{
border: 0 !important; /*Removes border*/
-webkit-appearance: none; /*Removes default chrome and safari style*/
-moz-appearance: none; /*Removes default style Firefox*/
background: url('select_icon.png') no-repeat;
background-position: 179px 7px;
text-indent: 0.01px;
text-overflow: "";
color: #FCAF17;
width:200px;
}
Run Code Online (Sandbox Code Playgroud)
查阅小提琴上的IE9.所有我需要的是移除ie9中的箭头请JSFIDDLE回答.
我使用下面的CSS来隐藏FF,safari,chrome中的下拉箭头,并添加了我自己的图像来自定义.
select
{
-webkit-appearance:none;
-moz-appearance:none;
-o-appearance:none;
appearance:none;
}
Run Code Online (Sandbox Code Playgroud)
对于IE10,我使用了伪元素
select::-ms-expand{
display:none;
}
Run Code Online (Sandbox Code Playgroud)
我不知道如何为IE9和IE8应用相同的内容.任何人都可以告诉我如何隐藏IE8和IE9中的下拉箭头.