我想从 HTML <select>
元素中删除下拉箭头。例如:
<select style="width:30px;-webkit-appearance: none;">
<option>2000</option>
<option>2001</option>
<option>2002</option>
...
</select>
如何在 Opera、Firefox 和 Internet Explorer 中执行此操作?
原文由 user2301515 发布,翻译遵循 CC BY-SA 4.0 许可协议
如果你使用 TailwindCSS 你可以利用
appearance-none
类。