03-注册页demo

注册页

在这里插入图片描述

注册页 CSS

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
html{
height: 100%;
}
body{
height: 100%;
margin: 0px;
background-image: url(../img/bg.jpg);
background-size: cover;
display: flex;/* 伸缩布局 */
align-items: center;/* 垂直居中 */
justify-content: center;/* 水平居中 */
}

#left{
width: 20%;
padding-top: 20px;
padding-left: 20px;
}
#left font{
font-size: 25px;
color: gray;
}
#left #f1{
color: orange;
}

#center{
width: 60%;
padding-top: 20px;
display: flex;/* 伸缩布局 */
padding-top: 60px;
/* align-items: center;/* 垂直居中 */
justify-content: center;/* 伸缩居中 */
color: gray;
}
#center input{
width: 300px;
height: 35px;
border: 1px solid lightgray;
border-radius: 5px;
}
#center #codes{
display: flex;/* 伸缩布局 */
align-items: center;/* 垂直居中 */
}
#center #code{
width: 210px;
}
#center #img{
padding-left: 10px;
}
#center button{
width: 9.375rem;
height: 2.1875rem;
margin-top: 20px;
background-color: orange;
border-radius: 5px;
color: white;
font-weight: bolder;
}
#center button:active{
background-color: #ff5500;
}

#right{
width: 20%;
padding-top: 20px;
}
#right a{
color: indianred;
text-decoration: none;
}
#right a:hover{
color: red;
}

#container{
display: flex;/* 伸缩布局 */
background-color: white;
width: 62.5rem;
height: 31.25rem;
}
img{
width: 80px;
}

注册页 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS伸缩布局之注册页面</title>
<link rel="stylesheet" type="text/css" href="./css/register.css" />
</head>
<body>
<div id="container">
<div id="left">
<font id="f1">新用户注册</font> <br>
<font id="f2">USER REGISTER</font>
</div>
<div id="center">
<form action="post" method="/servlet">
<table>
<tr>
<td>账户</td>
<td>
<input type="text" name="username" placeholder="请输入账户" />
</td>
</tr>
<tr>
<td>密码</td>
<td>
<input type="password" name="password" placeholder="请输入密码" />
</td>
</tr>
<tr>
<td>确认密码</td>
<td>
<input type="password" name="password" placeholder="请输入密码" />
</td>
</tr>
<tr>
<td>姓名</td>
<td>
<input type="text" name="realname" placeholder="请输入姓名" />
</td>
</tr>
<tr>
<td>邮箱</td>
<td>
<input type="text" name="email" placeholder="请输入邮箱" />
</td>
</tr>
<tr>
<td>电话</td>
<td>
<input type="text" name="phone" placeholder="请输入电话" />
</td>
</tr>
<tr>
<td>出生日期</td>
<td>
<input type="text" name="birthday" placeholder="YYYY-MM-DD" />
</td>
</tr>
<tr>
<td>验证码</td>
<td id="codes">
<input id="code" type="text" name="code" placeholder="请输入验证码" />
<img id="img" src="img/java.png">
</td>
</tr>
<tr>
<td colspan="2">
<button type="submit">注册</button>
</td>
</tr>
</table>
</form>
</div>

<div id="right">
<font>已有账户?</font>
<a href="index.html">立即登录</a>
</div>

</div>
</body>
</html>


03-注册页demo
https://janycode.github.io/2017/04/29/04_网页技术/02_CSS/03-注册页demo/
作者
Jerry(姜源)
发布于
2017年4月29日
许可协议