Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果输入在 1-100 之间,我如何检查 HTML5?
<input type="numeric" name="count" pattern="[1-9]" />
Using min and max.
min
max
<input type="number" name="count" min="1" max="100">
Note the type is number.
type
number