È possibile utilizzare l’elemento input con type=number per creare un campo destinato all’inserimento di un numero.. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. You can also set restrictions on what numbers are accepted. This seems a bit buggy in Chrome right now so it might not be the best solution at the moment. Number 对象是 HTML5 中的新对象。 Number 对象表示 HTML 元素。 注释: Internet Explorer 9 以及更早的版本不支持 元素。 访问 Number 对象. An HTML form with two input fields and one submit button:If you want to report an error, or if you want to make a suggestion, do not hesitate to send us an e-mail:
While using this site, you agree to have read and accepted our Define a field for entering a number (You can also set restrictions on what numbers are accepted):The defines a field for entering a number.Use the following attributes to specify restrictions:If you want to report an error, or if you want to make a suggestion, do not hesitate to send us an e-mail:
In Chrome & Firefox, the stepper buttons will increment / decrement by 1 when using any. The