代码如下(第一次写,不怎么会优化,望指正)
<!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>
<style>
body{
background: url(images/下载.png) no-repeat;
background-size: 1920px 465px;
background-color: #eff8ff;
min-width: 1200px;
min-height: 1100px;
background-position: -360px 680px;
}
.header{
width: 960px;
height: 80px;
/* background-color: red; */
margin: 0 auto;
}
.content{
width: 960px;
height: 600px;
/* background-color: green; */
margin: 0 auto;
}
.footer{
width: 960px;
height: 48px;
/* background-color: yellow; */
margin: 0 auto;
text-align: center;
line-height: 48px;
}
.footer p{
font-size: 12px;
color: #666;
display: inline;
}
.header .logo{
width: 644px;
height: 27px;
background: url(images/网易logo.png) no-repeat 0 0;
background-size: contain;
float: left;
}
.header .logo a{
width: 130px;
height: 27px;
/* background-color: blue; */
display: inline-block;
}
.header .logo span{
height: 29px;
line-height: 29px;
vertical-align: top;
letter-spacing: 1.68px;
font-size: 14px;
color: #666;
}
.header .links{
width: 200px;
height: 27px;
/* background-color: red; */
float: right;
text-align: right;
}
a{
color: #666;
text-decoration: none;
line-height: 27px;
font-size: 12px;
}
.content .top{
width: 960px;
height: 38px;
background-color: red;
background: url(images/导航条.png);
border-top-right-radius: 5px;
border-top-left-radius: 5px;
}
.content .top h1{
color: white;
font-size: 12px;
line-height: 38px;
text-indent: 2em;
}
.content .bottom{
width: 960px;
height: 562px;
/* background-color: blue; */
}
.content .bottom .articles{
width: 642px;
height: 562px;
float: left;
/* background-color: rgb(51, 95, 61); */
padding-top: 10px;
padding-left: 80px;
box-sizing: border-box;
border: 2px solid #666;
border-top: none;
border-right: none;
}
.content .bottom .articles .articleTop{
height: 560px;
height: 60px;
/* background-color: red; */
}
.content .bottom .articles .articleTop ul{
width: 430px;
height: 34px;
list-style: none;
/* background-color: tomato; */
}
.content .bottom .articles .articleTop li{
float: left;
width: 137px;
height: 34px;
background-color: skyblue;
line-height: 34px;
text-align: center;
border-radius: 5px;
box-sizing: border-box;
margin: 1px;
}
.content .bottom .articles .articleBottom{
width: 560px;
height: 373px;
/* background-color: #666; */
}
.content .bottom .articles .articleBottom input[type=submit]{
width: 119px;
height: 37px;
background: rgb(63, 194, 70) no-repeat center center;
border: none;
font-size: 20px;
margin-left: 80px;
margin-top: 0px;
border-radius: 3px;
}
.content .bottom .articles .articleBottom p{
font-size: 12px;
margin-left: 80px;
line-height: 12px;
}
.content .bottom .articles .articleBottom .line{
width: 413px;
height: 28px;
/* background-color: red; */
}
.content .bottom .articles .articleBottom .line .yzm{
width: 100px;
height: 28px;
float: right;
margin-right: 40px;
}
.content .bottom .articles .articleBottom .line .code{
float: left;
}
.content .bottom .articles .articleBottom .line .special{
width: 324px;
}
.content .bottom .articles .articleBottom .line input{
width: 180px;
height: 23px;
}
.content .bottom .articles .articleBottom .line select{
width: 120px;
height: 28px;
}
.content .bottom .articles .articleBottom .line span{
float: left;
height: 28px;
width: 60px;
/* background-color: aqua; */
font-size: 12px;
line-height: 28px;
}
.content .bottom .articles .articleBottom .line span .star{
color: red;
width: 7px;
}
.content .bottom .articles .articleBottom .line div{
float: right;
height: 28px;
width: 333px;
/* background-color: aquamarine; */
}
.content .bottom .aside{
height: 562px;
width: 318px;
/* background: red; */
float: right;
background: url(images/icon-industry-solutions-swiper-slide-img-8.png) no-repeat ;
background-size: cover;
border: 2px solid #666;
border-top: none;
box-sizing: border-box;
}
</style>
</head>
<body>
<div class="header">
<div class="logo">
<a href="" title="网易163免费邮"></a>
<a href="" title="网易126免费邮"></a>
<a href="" title="网易Yeah.net免费邮"></a>
<span>|</span>
<span>中国第一大电子邮件服务商</span>
</div>
<div class="links">
<a href="">了解更多</a>
<span>|</span>
<a href="">反馈意见</a>
</div>
</div>
<div class="content">
<div class="top">
<h1>欢迎注册网易邮箱</h1>
</div>
<div class="bottom">
<div class="articles">
<div class="articleTop">
<ul>
<li>注册字母邮箱</li>
<li>注册手机号码邮箱</li>
<li>注册VIP邮箱</li>
</ul>
</div>
<div class="articleBottom">
<div class="line">
<span><span class="star">*</span>邮箱地址</span>
<div>
<input type="text" value="建议使用手机号码注册">@<select name="" id=""value="">
<option value="163.com">163.com</option>
<option value="126.com">126.com</option>
<option value="1nj.com">1nj.com</option>
</select>
</div>
</div>
<p>6~18个字符,可使用字母、数字、下划线,需要以字母开头</p>
<div class="line">
<span><span class="star">*</span>密码</span>
<div>
<input type="password" value="" class="special">
</select>
</div>
</div>
<p>6~16个字符,区分大小写</p>
<div class="line">
<span><span class="star">*</span>确认密码</span>
<div>
<input type="password" value="" class="special">
</select>
</div>
</div>
<p>请再次填写密码</p>
<div class="line">
<span><span class="star">*</span>手机号码</span>
<div>
<input type="text" value="" class="special">
</select>
</div>
</div>
<p>忘记密码时,可通过手机号码快速找回密码</p>
<div class="line">
<span><span class="star">*</span>验证码</span>
<div>
<input type="text" value="" class="code">
<img src="images/验证码.webp" alt="" class="yzm">
</div>
</div>
<p>请填写途中字符,不区分大小写</p>
<p> <input type="checkbox" name="" id="">
同意<a href="#">《服务条款》</a>、<a href="#">《隐私政策》和《儿童隐私政策》</a></p>
<input type="submit" value="立即注册">
</div>
</div>
<div class="aside"></div>
</div>
</div>
<div class="footer">
<a href="#">关于网易</a>
<a href="#"> 客户服务</a>
<a href="#">隐私政策</a>
<p> | 网易公司版权所有©1997-2022数据来源:艾媒咨询研究报告</p>
</div>
</body>
</html>