去除input[type=number]最右边的spinners

CSS代码

input[type='number'] {
    -moz-appearance:textfield;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}

你可能感兴趣的:(去除input[type=number]最右边的spinners)