-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathfile控件.html
46 lines (35 loc) · 1.47 KB
/
file控件.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>form表单</title>
</head>
<body>
<!-- file控件,将来做文件上传使用 -->
请选择文件:<input type="file"/>
<hr>
<!-- hidden控件,这是一个隐藏域控件 -->
<form action="http://localhost:8080/oa/save" method="get">
<!-- 需求 : 希望用户代码是隐藏的,但是提交表单的时候一定要提交 -->
<!-- 当以后希望提交该数据给服务器,但又不希望用户看到的时候,此时就可以使用hidden控件 -->
用户代码 :<input type="hidden" name="usercode" value="111111" /><br>
机构代码 :<input type="text" name="orgcode" /><br>
<input type="submit" value="保存" />
<input type="submit" value=""/>
</form>
<hr>
<a href="https://www,baidu.com">百度一下</a>
<!-- disabled readonly -->
<!-- readonly只读的,不能修改,可以被用户看到。表单提交的时候会提交该数据 -->
<!-- http://localhost:8080/oa/save?usercode=1234 -->
<!-- disabled只读的,不能修改,可以被用户看到。表单提交的时候不会提交该数据 -->
<!-- http://localhost:8080/oa/save? -->
<form action="http://localhost:8080/oa/save" method="get">
用户代码 :<input type="text" name="usercode" value="1234" readonly/>
<input type="submit" value="保存"/>
</form>
<hr >
<!-- maxlength最大的输入长度 -->
<input type="text" maxlength="3" />
</body>
</html>