How can I customize the arrow to select?
This question already has an answer here:
You need to use CSS.
That's an example I found on google for a css template of a select:
JSFiddle
HTML:
<div>
<select class="select-style">
<option>Select1</option>
<option>Select2</option>
<option>Select35555</option>
</select>
</div>
CSS:
.select-style {
padding: 0;
margin: 0;
border: 1px solid #ccc;
width: 120px;
border-radius: 3px;
overflow: hidden;
background-color: #fff;
background: #fff url("http://www.scottgood.com/jsg/blog.nsf/images/arrowdown.gif") no-repeat 90% 50%;
}
.select-style select {
padding: 5px 8px;
width: 130%;
border: none;
box-shadow: none;
background-color: transparent;
background-image: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
.select-style select:focus {
outline: none;
}
You can modify it and change it like you want it. You can change the size of the arrow too.
链接地址: http://www.djcxy.com/p/41604.html上一篇: 样式与CSS选择箭头
下一篇: 我如何自定义要选择的箭头?