Correcting teacher:PHPz
Correction status:qualified
Teacher's comments:
<!DOCTYPE html>
<html lang="zh-CN">
<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>注册页</title>
<style>
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
html {
font-size: calc(100vw / 3.75);
}
body {
position: relative;
font-size: 0.13rem;
color: #505050;
background: #fff;
height: 100vh;
}
@media screen and (max-width: 320px) {
html {
font-size: 85px;
}
}
@media screen and (min-width: 640px) {
html {
font-size: 170px;
}
}
.container {
width: 2rem;
margin: 0 auto;
}
h2 {
text-align: center;
}
.form-control {
width: 2rem;
height: 0.23rem;
}
.form-group,
.btn {
margin-top: 0.1rem;
}
.form-group>.label {
display: block;
}
.form-group>.form-control {
border: 1px solid #bfc0c5;
}
.form-group>.form-control:hover {
border: 1px solid #474d5b;
color: #383e4b;
}
</style>
</head>
<body>
<div class="container">
<h2>注 册</h2>
<form action="php.html">
<div class="form-group">
<label class="label" for="name">用户名:</label>
<input type="text" class="form-control" id="name" placeholder="请输入用户名" />
</div>
<div class="form-group">
<label class="label" for="password">密码</label>
<input type="password" class="form-control" id="password" placeholder="请输入密码" />
</div>
<div class="form-group">
<label class="label" for="email">Email</label>
<input type="email" class="form-control" id="email" placeholder="请输入Email" />
</div>
<div class="form-group">
<input class="form-checkbox" id="checkbox" type="checkbox" value="value" />
<label class="labelb" for="checkbox">勾选登录</label>
</div>
<button type="button" class="btn">登录</button>
</form>
</div>
</body>
</html>
<!DOCTYPE html>
<html lang="zh-CN">
<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>布局(grid版)</title>
<style>
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
background-color: rgb(210, 221, 210);
}
.grid {
width: 100vm;
height: 100vh;
display: grid;
gap: 10px 10px;
grid-template-columns: 1fr 4fr;
grid-template-rows: 100%;
}
.left {
display: grid;
grid-template-columns: 1fr;
grid-row-gap: 10px;
}
.left>.lb {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px 10px;
}
.right {
display: grid;
grid-template-columns: 1fr;
gap: 10px;
grid-template-rows: 30%;
}
</style>
</head>
<body>
<div class="grid">
<div class="left">
<div class="lt" style="background-color: #f78783">1</div>
<div class="lb">
<div style="background-color: #9983ce">3</div>
<div style="background-color: #7ec42f">5</div>
</div>
</div>
<div class="right">
<div style="background-color: #dd34b3">2</div>
<div style="background-color: #d8ee12">4</div>
</div>
</div>
</body>
</html>