input標籤當type爲number時,只能輸入數字input
其中有max和min屬性,是限制輸入數字的大小,當想輸入小數時,能夠把步數step改成小數,如step = 0.1input標籤
如:標籤
<input type = "number" value = "10" max = "20" min = "10" step = "0.1">數字