如何替换< select>上的箭头按钮元素与css? [英] How do you replace the arrow button on <select> element with css?
本文介绍了如何替换< select>上的箭头按钮元素与css?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尝试使用下拉箭头的图片为表单上的select元素设置样式。不知道这是否可能。
Trying to style the select element on a form with an image for the dropdown arrow. Dont know if this is possible yet.
推荐答案
将此样式添加到您的
.styled-select {
background: url(new_arrow.png) no-repeat right #fff;
}
资料来源: http://bavotasan.com/2011/style-select-box-using-only-css/
这篇关于如何替换< select>上的箭头按钮元素与css?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文