input type number属性大小限制,右侧按钮限制,手动输入限制

右侧按钮max min 属性以及step属性
max 属性规定输入域所允许的最大值。
min 属性规定输入域所允许的最小值。
step 属性为输入域规定合法的数字间隔(如果 step=“3”,则合法的数是 -3,0,3,6 等)

 <div class="item_con score">
                            <input type="number" max="100" min="10" name="" value="" placeholder="团队">
                            <input type="number" max="100" min="10" name="" value="" placeholder="团队">
                            <input type="number" max="100" min="10" name="" value="" placeholder="产品">
                            <input type="number" max="100" min="10" name="" value="" placeholder="代币">
                            <input type="number" max="100" min="10" name="" value="" placeholder="社区">
                            <input type="number" max="100" min="10" name="" value="" placeholder="顾问">
                        </div>

在这里插入图片描述
手动输入限制

发布了62 篇原创文章 · 获赞 21 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qq_40618664/article/details/101026448