【发布时间】:2013-12-06 02:07:25
【问题描述】:
我已经建立了一个下拉菜单并自定义了向下箭头。
没关系,工作正常。
在 IE 10 中,当我打开下拉菜单时,我有黑色边框。
有没有办法将它们删除或更改它们的颜色?
CSS
#contact #tabs #bord td select {
background: url("/static/img/down-arrow.png") no-repeat right #fff;
border:none;
padding: 0 5px;
overflow:hidden;
width: 120%;
-webkit-appearance: none;
-moz-appearance: none;
-ms-appearance: none;
-o-appearance: none;
appearance: none;
}
select::-ms-expand {
display: none;
}
HTML/CMS 模板
<td colspan="2">
<div class="styleSelect">
<select name="topic" class="desktopDropDown" style="border:none;">
{% with request|enquiry_topics as topics %}
{% for t in topics %}
<option value="{{t.id}}">{{t}}</option>
{% endfor %}
{% endwith %}
</select>
</div>
【问题讨论】:
标签: html css internet-explorer select