html:
<input type="number">
css:
<style>
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button{
-webkit-appearance: none !important;
}
input[type="number"]{
-moz-appearance:textfield;
}
</style>
在disabled状态时,Chrome,FireFox,IE样式也不一样,为了更相近:
input{
background: transparent;
color: #aaa;
border: 1px solid #aaa;
}