參考:http://uplifted.net/programming/change-default-select-dropdown-style-just-css/
來源:https://blog.csdn.net/java_zhaoyanli/article/details/52549787
select {
/*Chrome和Firefox裏面的邊框是不一樣的,所以複寫了一下*/
border: solid 1px #000;
/*很關鍵:將默認的select選擇框樣式清除*/
appearance:none;
-moz-appearance:none;
-webkit-appearance:none;
/*在選擇框的最右側中間顯示小箭頭圖片*/
background: url("http://ourjs.github.io/static/2015/arrow.png") no-repeat scroll right center transparent;
/*爲下拉小箭頭留出一點位置,避免被文字覆蓋*/
padding-right: 14px;
}
/*清除ie的默認選擇框樣式清除,隱藏下拉箭頭*/
select::-ms-expand { display: none; }