案例:html案例     状态:可编辑再运行    进入竖版
 运行结果 
x
 
1
<!DOCTYPE html>
2
<html>
3
<body>
4
5
<p>
6
Depending on browser support:<br>
7
Fixed steps will apply in the input field.
8
</p>
9
10
<form action="/example/html/form_action.aspx">
11
  Quantity:
12
  <input type="number" name="points"
13
   min="0" max="100" step="10" value="30">
14
  <input type="submit">
15
</form>
16
17
<p><b>Note:</b>type="number" is not supported in IE9 and earlier.
18
</p>
19
20
</body>
21
</html>