介绍
HTML 5: 表单元素之 input 元素
- 表 单元素之 input 元素 - text, password, url, telephone, email, search, file, radio, checkbox, button, submit, reset, number, range, image, hidden, color, datetime, datetime-local, date, time, month, week
- input 元素的通用属性 - autocomplete, placeholder, pattern, dirname, size, maxlength, readonly, required, list, multiple, min, max, step
示例
1、text - 文本框
element/form/input/text.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
2、password - 密码框
element/form/input/password.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|
3、url - url 框
element/form/input/url.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|
4、telephone - 电话框
element/form/input/telephone.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|
5、email - 电子邮件框
element/form/input/email.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|
6、search - 搜索框
element/form/input/search.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|
7、file - 用于上传文件
element/form/input/file.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
8、radio - 单选框
element/form/input/radio.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
|
9、checkbox - 复选框
element/form/input/checkbox.html
发表回复