当前位置:   article > 正文

HTML实现好看而简洁的登录页面_系统欢迎页制作html

系统欢迎页制作html

效果图

在这里插入图片描述

代码

<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
		<link rel="stylesheet" href="login.css" />
		<link
			rel="stylesheet"
			href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
		/>
	</head>
	<body>
		<div class="container">
			<div class="wrapper">
				<div class="form-info">
					<div class="info">
						<h1>欢迎回来</h1>
						<p>
							热爱生活,学会生活,创造生活。播种生活,收获习惯;播种习惯,收获性格;播种性格,收获命运
						</p>
					</div>
					<form action="#" class="form">
						<h2>登录</h2>
						<div class="input-group">
							<span><i class="fa fa-user" aria-hidden="true"></i></span>
							<input type="email" placeholder="邮箱或用户名" required="" />
						</div>
						<div class="input-group two-group">
							<span><i class="fa fa-key" aria-hidden="true"></i></span>
							<input type="Password" placeholder="密码" required="" />
						</div>
						<div class="form-row bottom">
							<div class="form-check">
								<input
									type="checkbox"
									id="remenber"
									name="remenber"
									value="remenber"
								/>
								<label for="remenber">记住我</label>
							</div>
							<a href="#" class="forgot">忘记密码?</a>
						</div>
						<button class="btn btn-primary btn-block" type="submit">
							登录
						</button>
					</form>
					<p class="account">还没有账号? <a href="#register">登录</a></p>
				</div>
			</div>
		</div>
	</body>
</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
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Kumbh Sans', sans-serif;
}
@font-face {
	font-family: 'iconfont'; /* project id 3197060 */
	src: url('');
	src: url('?#iefix') format('embedded-opentype'),
		url('//at.alicdn.com/t/font_3197060_4ktff6jodt6.woff2') format('woff2'),
		url('//at.alicdn.com/t/font_3197060_4ktff6jodt6.woff') format('woff'),
		url('//at.alicdn.com/t/font_3197060_4ktff6jodt6.ttf') format('truetype'),
		url('#iconfont') format('svg');
}
.container {
	padding: 40px;
	width: 100%;
	min-height: 100vh;
	background: linear-gradient(rgb(229, 132, 132), #4bb1e0);
	display: flex;
	justify-content: center;
}
@media (min-width: 576px) {
	.wrapper {
		max-width: 540px;
	}
}
@media (min-width: 768px) {
	.wrapper {
		max-width: 720px;
	}
}
@media (min-width: 992px) {
	.wrapper {
		max-width: 960px;
	}
}
@media (min-width: 1200px) {
	.wrapper {
		max-width: 1140px;
	}
}
.wrapper {
	width: 100%;
	padding: 0 15px;
	display: flex;
	justify-content: flex-end;
}
.wrapper .form-info {
	padding-top: 60px;
	max-width: 400px;
	display: flex;
	flex-direction: column;
}
.wrapper .form-info .info h1 {
	color: #fff;
	font-size: 40px;
	letter-spacing: 6px;
	white-space: nowrap;
}
.wrapper .form-info .info p {
	margin-top: 20px;
	color: rgb(231, 221, 221);
	font-size: 18px;
}
.wrapper .form-info .form {
	margin-top: 40px;
}
.wrapper .form-info .form h2 {
	letter-spacing: 14px;
	color: #fff;
	font-size: 30px;
	margin-bottom: 15px;
}
.wrapper .form-info .form .input-group {
	padding: 0px 0px;
	position: relative;
	border: 3px solid #fff;
	border-radius: 6px;
	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
	-ms-border-radius: 6px;
	-o-border-radius: 6px;
	border-bottom-left-radius: 0px;
	border-bottom-right-radius: 0;
}
.wrapper .form-info .form .input-group i {
	font-size: 20px;
	vertical-align: middle;
	box-sizing: border-box;
	float: left;
	width: 8%;
	margin-top: 13px;
	text-align: center;
	color: #fff;
	position: absolute;
	left: 8px;
	top: 6px;
}
input[type='email'],
input[type='Password'] {
	font-size: 17px;
	font-weight: 500;
	color: #fff;
	text-align: left;
	padding: 18px 18px 20px 42px;
	width: 100%;
	display: inline-block;
	box-sizing: border-box;
	border: none;
	outline: none;
	background: transparent;
	letter-spacing: 0.5px;
}
.wrapper .form-info .form .input-group.two-group {
	border-top: none;
	margin-bottom: 30px;
	border-radius: 6px;
	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
	-ms-border-radius: 6px;
	-o-border-radius: 6px;
	border-top-left-radius: 0px;
	border-top-right-radius: 0;
}
.wrapper .form-info .form .form-row.bottom {
	display: flex;
	justify-content: space-between;
}
.wrapper .form-info .form .form-check {
	display: flex;
	align-items: center;
}
.wrapper .form-info .form .form-row.bottom #remenber {
	width: 18px;
	height: 18px;
	margin-right: 5px;
}
.wrapper .form-info .form .form-row.bottom #remenber + label {
	color: rgb(77, 74, 71);
}
.wrapper .form-info .form a.forgot {
	color: #ffeb3b;
	margin-top: 2px;
	opacity: 0.8;
}
.btn-primary {
	color: #232005;
	background-color: #ffd900;
	margin-top: 30px;
	outline: none;
	width: 100%;
	padding: 15px 15px;
	cursor: pointer;
	font-size: 18px;
	font-weight: 600;
	border-radius: 6px;
	letter-spacing: 8px;
	text-indent: 8px;
	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
	-ms-border-radius: 6px;
	-o-border-radius: 6px;
	border: none;
	text-transform: capitalize;
}
p.account,
p.account a {
	text-align: center;
	padding-top: 20px;
	padding-bottom: 0px;
	font-size: 16px;
	color: #fff;
	opacity: 0.9;
}
  • 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
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/凡人多烦事01/article/detail/525957
推荐阅读
相关标签