以滑动的方式选择数值。
<form> <!-- 数值的范围用 max 和 min 定义,当前的值是 1-100 --> <input type="range" name="range" min="1" max="100" /> </form>
显示效果