html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>login</title>
<link rel="stylesheet" href="login.css">
</head>
<body>
<div class="topdiv">
<h1 class="title">
请登录
</h1>
<form>
<div>
<input type="text" name="text" placeholder="请输入学号/工号" class="textinput">
</div>
<div>
<input type="password" name="password" placeholder="请输入密码" class="textinput">
</div>
<div>
<input type="checkbox" name="remenber">
<label class="label">记住密码</label>
</div>
<div>
<input type="submit" name="submit" class="button">
<input type="reset" name="reset" class="button">
</div>
</form>
</div>
</body>
</html>
css:
body {
background: #e8f2f0;
}
.topdiv {
margin: auto;
width: 50%;
padding: 20px;
}
.title {
color: #25a589;
}
.textinput {
width: 200px;
height: 25px;
}
div {
padding-bottom: 10px;
}
.button {
background-color: #25a589;
border: none;
color: white;
padding: 6px 35px;
text-align: center;
font-size: 16px;
}
.label {
color: #25a589;
}
效果: