03_input type="number" 输入允许小数点后两位

<input type="number" min="0" max="100" step="0.01"/>
<!-- step="0.01" :即点击的上下箭头时会以0.01的速度增加或者减少(默认是只能输入整数,否则变红提示.加上step="0.01" 默认输入到小数点后两位)-->

就是这么简单!

原文地址:https://www.cnblogs.com/heshaoxu/p/7764787.html