【发布时间】:2015-07-09 17:43:04
【问题描述】:
有没有办法在 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 并没有摆脱下拉图标。
【问题讨论】:
标签: html css firefox select cross-browser