-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathform_item.html
More file actions
94 lines (77 loc) · 3.23 KB
/
form_item.html
File metadata and controls
94 lines (77 loc) · 3.23 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!--
* @由于个人水平有限, 难免有些错误, 还请指点:
* @Author: cpu_code
* @Date: 2020-10-09 13:51:24
* @LastEditTime: 2020-10-09 14:43:32
* @FilePath: \web\css\form_item\form_item.html
* @Gitee: [https://gitee.com/cpu_code](https://gitee.com/cpu_code)
* @Github: [https://github.com/CPU-Code](https://github.com/CPU-Code)
* @CSDN: [https://blog.csdn.net/qq_44226094](https://blog.csdn.net/qq_44226094)
* @Gitbook: [https://923992029.gitbook.io/cpucode/](https://923992029.gitbook.io/cpucode/)
-->
<!DOCTYPE html>
<html lang="ch">
<head>
<meta charset="UTF-8">
<title>cpucode 表单项 </title>
</head>
<body>
<form action="#" method="get">
<label for="username" > 用户名 </label>:
<!-- text:文本输入框,默认值
* placeholder:指定输入框的提示信息,当输入框的内容发生变化,会自动清空提示信息
-->
<input type="text" name="username" placeholder="请输入用户名" id="username">
<br/>
<!-- password:密码输入框 -->
密码: <input type="password" name="password" placeholder="请输入密码">
<br/>
<!-- radio:单选框 -->
性别: <input type="radio" name="gender" value="male"> 男
<input type="radio" name="gender" value="female" checked> 女
<br/>
<!-- checkbox:复选框 -->
爱好: <input type="checkbox" name="hobby" value="shopping"> 购物
<input type="checkbox" name="hobby" value="java"> java
<br/>
<!-- file:文件选择框 -->
图片: <input type="file" name="file">
<br/>
<!-- hidden:隐藏域,用于提交一些信息 -->
隐藏域: <input type="hidden" name="id" value="cpucode">
<br/>
取色器: <input type="color" name="color">
<br/>
生日: <input type="date" name="birthday">
<br/>
生日: <input type="datetime-local" name="birthday">
<br/>
邮件: <input type="email" name="email">
<br/>
年龄: <input type="number" name="age">
<br/>
省份: <select name="province">
<option value="">--请选择--</option>
<option value="1">北京</option>
<option value="2" selected>广东</option>
</select>
<br/>
<!-- textarea:文本域
* cols:指定列数,每一行有多少个字符
* rows:默认多少行
-->
自我描述: <textarea cols="20" rows="15" name="des"></textarea>
<br/>
<!-- submit:提交按钮。可以提交表单 -->
<input type="submit" value="登录">
<br/>
<!-- button:普通按钮 -->
<input type="button" value="按键">
<br/>
<!-- image:图片提交按钮
* src属性指定图片的路径
-->
<input type="image" src="image/regbtn.jpg">
</form>
</body>
</html>