HTML中的input的type类型

表单类型

 

| 类型           | 使用示例                    | 含义         |
| ------------ | ----------------------- | ---------- |
| **email**    | <input type="email">    | 输入邮箱格式     |
| **tel**      | <input type="tel">      | 输入手机号码格式   |
| **url**      | <input type="url">      | 输入url格式    |
| **number**   | <input type="number">   | 输入数字格式     |
| **search**   | <input type="search">   | 搜索框(体现语义化) |
| **range**    | <input type="range">    | 自由拖动滑块     |
| **color**    | <input type="color">    | 拾色器        |
| **time**     | <input type="time">     | 时间         |
| **date**     | <input type="date">     | 日期         |
| **datetime** | <input type="datetime"> | 日期时间       |
| **month**    | <input type="month">    | 月份         |
| **week**     | <input type="week">     | 周          |

 

 

 

 

 

 

 

posted @ 2020-05-15 14:53  留下成长的足迹  阅读(637)  评论(0编辑  收藏  举报