1. 程式人生 > >input型別為number時,去掉上下箭頭

input型別為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>