<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                [TOC] >[success] # 新引入的type 屬性 ~~~ 1.必須提交才能出發 2.只支持ie9往上的瀏覽器 ~~~ | 標簽 |描述 | | --- | --- | | email | html5 中新增的郵箱-驗證 | | tel | tel它并不是來實現驗證。它的本質目的是為了能夠在移動端打開數字鍵盤 | |url | 驗證只能輸入合法的網址:必須包含http:// | | number | 只能輸入數字(包含小數點),不能輸入其它的字符,max:最大值,min:最小值,value:默認值 | | search | 以提供更人性化的輸入體驗多一個刪除input框內容按鈕 | | range | 范圍輸入條:范圍 max 最大值,min 最小值,value默認值 不填寫默認中間 | | color | color選擇顏色 | | time | 時間:時分秒| | data | 日期:年月日 | | datetime | 大多數瀏覽器不能支持datetime.用于屏幕閱讀器- | | datetime-local | 期和時間 | | month | 月份 | | week | 一年中的第幾周 | >[danger] ##### 案例 ![](https://box.kancloud.cn/65c6345f8e437f08667cec191f77684e_355x432.png) ~~~ html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> header{ display: block; width: 100%; height: 100px; background-color: red; } </style> </head> <body> <form action=""> <!--提交觸發--> <!--html4 中的驗證,文本和密碼--> 文本:<input type="text"> <br> 密碼:<input type="password"> <p>分割線</p> <!--html5 中新增的郵箱-驗證--> 郵箱:<input type="email"> <br> <!--tel它并不是來實現驗證。它的本質目的是為了能夠在移動端打開數字鍵盤。意味著數字鍵盤限制了用戶只能輸入數字。 如何查看效果:qq發送文件>>手機端使用qq來接收>>使用手機瀏覽器查看--> 電話:<input type="tel"> <br> <!--驗證只能輸入合法的網址:必須包含http://--> 網址:<input type="url"> <br> <!--number:只能輸入數字(包含小數點),不能輸入其它的字符 max:最大值 min:最小值 value:默認值--> 數量:<input type="number" value="60" max="100" min="0"> <br> <!--search:可以提供更人性化的輸入體驗多一個刪除input框內容按鈕--> 請輸入商品名稱:<input type="search"> <br> <!--range:范圍 max 最大值 min 最小值 value默認值 不填寫默認中間 --> 范圍:<input type="range" max="100" min="0" value="50"> <br> 顏色:<input type="color"> <br> <!--time:時間:時分秒--> 時間:<input type="time"> <br> <!--date:日期:年月日--> 日期:<input type="date"> <br> <!--datetime:大多數瀏覽器不能支持datetime.用于屏幕閱讀器--> 日期時間:<input type="datetime"><br> <!--datetime-local:日期和時間--> 日期時間:<input type="datetime-local"> <br> 月份:<input type="month"> <br> 星期:<input type="week"> <input type="submit"> </form> <script src="../js/html5shiv.min.js"></script> </body> </html> ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看