1.可用:
<style type="text/css">
select {
/*Chrome和Firefox里面的边框是不一样的,所以复写了一下*/
border: solid 1px #000;
/*很关键:将默认的select选择框样式清除*/
appearance:none;
-moz-appearance:none;
-webkit-appearance:none;
/*在选择框的最右侧中间显示小箭头图片*/
background: url('../static/img/arrow.png') no-repeat scroll right center transparent !important;
/*为下拉小箭头留出一点位置,避免被文字覆盖*/
padding-right: 14px;
}
/*清除ie的默认选择框样式清除,隐藏下拉箭头*/
select::-ms-expand { display: none; }
</style>
小箭头图片网址:http://ourjs.github.io/static/2015/arrow.png
(失败的话加!important 试试)
2.或 直接在div中写style:
style="height: 40px;
border: 1px solid #e5e6e7;
appearance:none;
-moz-appearance:none;
-webkit-appearance:none;
padding-right: 14px;
background: url('../static/img/arrow.png') no-repeat scroll right center transparent;
::-ms-expand { display: none;} "