Firefox不支持输入类型编号的min 属性,但在Google Chrome中可以正常使用。
让我们来看一个例子:
<!DOCTYPE html> <html> <head> <title>HTML input number</title> </head> <body> <form action = "" method = "get"> Mention any number between 1 to 10 <input type = "number" name = "num" min = "1" max = "10"><br> <input type = "submit" value = "Submit"> </form> </body> </html>