<!DOCTYPE html> <html> <body> <p> 输入字段中将应用固定的步进(取决于浏览器支持): </p> <form action="/Index/Demo/demo_form_current.html"> 数量: <input type="number" name="data" min="0" max="100" step="10" value="30"> <input type="submit"> </form> <p><b>注释:</b>IE9 以及更早版本不支持 type="number"。 </p> </body> </html>