forked from Sakitama/Sakitama.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Task_29.html
69 lines (69 loc) · 1.18 KB
/
Task_29.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE>
<html>
<head>
<meta charset="utf-8">
<title>IFE JavaScript Task 29</title>
<style>
* {
margin: 0;
padding: 0;
font-size: 30px;
font-family: "Microsoft YaHei UI", sans-serif;
}
td.text {
width: 100px;
}
table {
margin: 200px auto 0;
}
table tr td {
height: 80px;
}
input#confirm {
width: 80px;
height: 50px;
color: white;
border: none;
background-color: #2F79BA;
border-radius: 10px;
outline: none;
}
input#validate {
width: 500px;
height: 50px;
padding: 10px;
border: 1px solid gray;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
-o-border-radius: 10px;
border-radius: 10px;
}
p#message {
width: 550px;
color: #e2e2e2;
}
</style>
</head>
<body>
<form>
<table>
<tr>
<td class="text">
<p>名称:</p>
</td>
<td>
<input id="validate" type="text">
<input type="button" id="confirm" value="验证">
</td>
</tr>
<tr>
<td class="text"></td>
<td>
<p id="message">请输入4-16位中文、英文、数字、中文符号或英文符号</p>
</td>
</tr>
</table>
</form>
<script type="text/javascript" src="js/task-29.js"></script>
</body>
</html>