【发布时间】:2013-05-12 07:45:01
【问题描述】:
我想从 HTML <select> 元素中删除下拉箭头。例如:
<select style="width:30px;-webkit-appearance: none;">
<option>2000</option>
<option>2001</option>
<option>2002</option>
...
</select>
在 Opera、Firefox 和 Internet Explorer 中如何操作?
【问题讨论】:
-
一些将其隐藏在 Firefox 中的答案/技巧 - stackoverflow.com/questions/5912791/…
-
appearance
#slectType { -webkit-appearance: none; appearance: none /*menulist*/!important; max-width: 300px; line-height: 0px;} input[type='text'], select {max-height: 30px;max-width: 300px; text-align-last: center; /*text-indent: 5px;*/} button:hover {color: #FFF;background-color: #566977;box-shadow:none;border-color: #759AB5;} #errorMSG{z-index: 2147483647;}浏览[CH:-webkit, FF:-moz, IE:-ms, Oprea:-o];
标签: html css drop-down-menu html-select