将原生select修改样式:

select {
appearance: none;
-moz-appearance: none;
-webkit-appearance: none;
/*以上三项,为清除select自带样式*/
background: url([/img/arrowdown.png](http://localhost:8080/img/arrowdown.png)) center right no-repeat #fff;
background-origin: content-box;
background-size:16px; //这个自己重写成适合的大小
width: 210px;
padding: 0 8px;
height: 34px;
line-height: 34px;
border-radius: 3px;
border: solid 1px #dbdbdb;
color: #666;
cursor: pointer;
}
//获取select text
$('.xxx').find("option:selected").text()
网友评论