html5 input_range.html

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">     
    <title>html5 input_range</title> 
</head>
<body>
<script>
    /*參考:https://www.runoob.com/html/html5-form-input-types.html
    * 知識點:
    *   1.range 類型用於包含一定範圍內數值的輸入域。
            range 類型顯示爲滑動條。
            max - 規定允許的最大值
            min - 規定允許的最小值
            step - 規定合法的數字間隔
            value - 規定默認值*/
</script>
<form action="https://www.runoob.com/try/demo_source/demo-form.php" method="get">
    Points: <input type="range" name="points" min="1" max="10">
    <input type="submit">
</form>
</body>
</html>




發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章