如何在 Firefox(Firefox 版本 30)和 IE 中删除默认箭头形式 <select>

How to remove default arrow form <select> in Firefox (Firefox version 30) and IE

有没有办法在 Firefox 和 IE 中隐藏元素的箭头,我知道这个问题已经在这里问过并回答过,但不再适用于 FF30。

这是我正在做的一个例子:

select {
  border: 0 !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: url(../images/select-arrow.png) no-repeat 95% 50% #ffffff;
  background-size: 12%;
  overflow: hidden;
  border: 1px solid #b4b4b4;
  padding: 5px;
  font-size: 16px;
  text-indent: 0.01px;
  text-overflow: "";
}
<select class="col-xm-8 col-sm-8 col-xs-8 pull-right">
  <option selected="selected" icon="">Sort Topics</i>
  </option>

  <option>1</option>
  <option>2</option>
  <option>3</option>
  <option>4</option>
</select>

我只想删除 firefox 中的默认箭头图标 & IE.he -moz-appearance: none 没有删除下拉图标。

你可以试试:

select::-ms-expand {
   display: none;
}

用于在 IE 中隐藏下拉箭头以及更多 info

对于 firefox,我们可以使用这个:

-webkit-appearance: none;
-moz-appearance: none;
 appearance: none;

看到这个fiddle: 看到这个 link and link2

如果您仍然对箭头有疑问,请告诉我

谢谢

我更新了我的 moz 版本,现在我使用的是 37.0.2 版本 firefox 在较新版本

上解决了这个错误