去除input的type属性为number时的上下箭头
<input type="number" ...>
<style>
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
}
input[type="number"]{
-moz-appearance: textfield;
}
</style>
本文介绍了一种通过CSS样式来移除HTML中input type=number元素的上下箭头的方法,适用于Webkit和Mozilla浏览器。
1291

被折叠的 条评论
为什么被折叠?



