HTML5 - 范围输入



范围类型用于应该包含一定数值范围的输入字段。

示例

<!DOCTYPE HTML>

<html>
   <body>

      <form action = "/cgi-bin/html5.cgi" method = "get">
         Select Range : <input type = "range" min = "0" max = "10" step "1" 
            value = "5" name = "newinput" />
         <input type = "submit" value = "submit" />
      </form>

   </body>
</html>

输出

html5_web_forms2.htm
广告