console
<!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="css/style.css">
<style>
header,
section,
footer {
width: 680px;
border: 2px solid red;
margin-top: 20px;
margin-bottom: 20px;
margin-left: auto;
margin-right: auto;
padding-top: 0px;
padding-bottom: 0px;
padding-left: 20px;
padding-right: 20px;
}
header div.nav {
float: right;
/* border: 1px solid black; */
height: 60px;
line-height: 60px; //这个设置使div内容居中
}
section div.box-left {
width: 360px;
float: left;
}
section div.box-right {
width: 285px;
height: 275px;
padding: 10px;
border: 1px solid black;
float: right;
margin-top: 20px;
}
.box-right p:nth-of-type(2),
.box-right p:nth-of-type(3),
.box-right p:nth-of-type(4) {
margin-left: 40px;
}
datalist {
width: 15px;
}
.box-right p:nth-child(5),
.box-right p:nth-child(6) {
margin-left: 85px;
}
section,
footer {
overflow: hidden;
clear: both;
}
footer span.bottom-right {
float: right;
height: 40px;
line-height: 40px;
}
</style>
</head>
<body>
<header>
<a href="https://sm.ms/image/JyAP4vxomzNtehU" target="_blank"><img src="https://i.loli.net/2021/04/10/JyAP4vxomzNtehU.gif" ></a>
<div class="nav">
<a href="#">免费邮</a>
<a href="#">企业邮</a>
<a href="#">VIP邮</a>
<a href="#">帮助</a>
</div>
</header>
<section>
<div class="box-left">
<a href="https://sm.ms/image/JXVoClASv35ENpe" target="_blank"><img src="https://i.loli.net/2021/04/10/JXVoClASv35ENpe.jpg" alt="imap.jpg"></a>
<div>
<ul>
<li>163/126/yeah三大免费邮箱均默认开放</li>
<li>全面支持iPhone/iPad及Android等系统</li>
<li>客户端、手机与网页,实现发送、阅读邮件立即同步普通登录手机号登录</li>
</ul>
</div>
</div>
<div class="box-right">
<form action="#" method="get">
<p>
<a href="https://sm.ms/image/VDbJnBSKu6ZgtGI" target="_blank"><img src="https://i.loli.net/2021/04/10/VDbJnBSKu6ZgtGI.gif" ></a> <span class="login-text">普通登录</span>
</p>
<p>
<label for="user">用户名</label>
<input type="text" name="user" id="user">@163.com
</p>
<p>
<label for="password">密码</label>
<input type="password" name="pass" id="pass">
</p>
<p>
<label for=“version”>版本</label>
<input type="text" name="version" id="version" list="list-version" placeholder="默认">
<datalist id="list-version">
<option value="1">默认</option>
<option value="2">企业邮</option>
<option value="3">VIP邮</option>
</datalist>
</p>
<p>
<input type="checkbox" name="autologin" id="">自动登录
<input type="checkbox" name="ssl" id="">SSL
</p>
<p>
<input type="submit" value="登录">
<input type="button" value="注册">
</p>
</form>
</div>
</section>
<footer>
<img class="bottom-left" <a href="https://sm.ms/image/fWZgFjzApK6alnQ" target="_blank"><img src="https://i.loli.net/2021/04/10/fWZgFjzApK6alnQ.gif" ></a>
<span class="bottom-right">
<a href="#">关于网易</a>
<a href="#">免费邮</a>
<a href="#">官方博客</a>
<a href="#">客户服务</a>
<a href="#">隐私政策</a>
| 网易公司版权所有 1997-2011
</span>>
</footer>
</body>
</html>