选择删除下拉箭头 [英] Select removing dropdown arrow
本文介绍了选择删除下拉箭头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我要从html中的select中删除下拉箭头。例如
I want to remove dropdown arrow from select in html. For example
<select style="width:30px;-webkit-appearance: none;">
<option>2000</option>
<option>2001</option>
<option>2002</option>
...
</select>
如何在歌剧,firefox和互联网浏览器中进行?
How to do it in opera, firefox and internet explorer?
还有一个图片:
There is also an image:
谢谢
推荐答案
不需要hacks或溢出...有一个伪 - IE上的下拉箭头的元素...
no need for hacks or overflow... there's a pseudo-element for the dropdown arrow on IE...
select::-ms-expand {
display: none;
}
这篇关于选择删除下拉箭头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文