html代码+css代码
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>苏宁易购</title>
<style>
body{
font-family: "microsoft yahei";
background-color: rgb(248,248,248);
font-size: 12px;
}
div.big{
max-width: 860px;
height: 450px;
margin: 0 auto;
}
div.title{
max-width: 860px;
height: 76px;
}
div.bottom{
background-color: white;
border: 1px solid #C0C0C0;
border-top: 3px solid #f90;
}
div.small{
max-width: 333px;
margin: 0 auto;
}
div.text{
float: left;
font-size: 18px;
color: rgb(102,105,102);
line-height: 76px;
}
div.text2{
float: left;
line-height: 20px;
}
div.input{
margin: 0 auto;
margin-top: 50px;
max-width: 333px;
}
div.liwu{
font-size: 14px;
margin: 0 auto;
line-height: 20px;
}
div.phone{
border: 1px solid #C0C0C0;
max-width: 333px;
height: 37px;
margin-bottom: 28px;
}
div.phone_1{
height: 34px;
width: 250px;
float: left;
}
div.phone_2{
height: 34px;
width: 120px;
float: left;
}
div.phone_3{
line-height: 36px;
width: 120px;
float: right;
background-color: rgb(245,245,245);
text-align: center;
}
div.submit{
width: 333px;
margin-top: 60px;
height: 37px;
}
div.qiye{
margin-top: 5px;
width: 333px;
height: 19px;
margin-bottom: 25px;
}
div.list{
width: 333px;
font-size: 10px;
}
a.logo{
float: left;
margin-right: 20px;
}
a.login{
color: #333333;
float: right;
margin-top: 50px;
}
a.qiye{
color: #1afa29;
line-height: 19px;
}
a.login:hover,a.code:hover,a.list:hover{
color: rgb(225,105,0);
}
a.code{
color: #333333;
font-size: 13px;
}
a.list{
color: #333333;
}
img.liwu{
width: 18px;
height: 18px;
float: left;
}
img.home{
width: 16px;
height: 16px;
}
label.head{
float: left;
width: 70px;
margin-left: 8px;
line-height: 37px;
}
input.phone{
height: 100%;
width: 100%;
}
input.submit{
width: 100%;
height: 100%;
background-color: rgb(255,85,0);
}
input{
border: 0px;
background: 0px;
outline: 0;
background-color: white);
}
input[placeholder]{
font-family:"microsoft yahei" ;
font-size: 12px;
color: rgb(202,202,202);
}
input[value]{
font-size: 18px;
color: white;
}
a{
text-decoration:none;
}
p.list{
text-align: center;
}
p.list2{
text-align: center;
color: #b2b2b2;
}
</style>
</head>
<body>
<div class="big">
<div class="title">
<a href="https://www.suning.com/" class="logo"><img src="img/logo.png" height="72px"></a>
<a href="https://www.suning.com/" class="login">我已经注册,马上登录></a>
<div class="text">
欢迎注册
</div>
</div>
<div class="bottom">
<div class="input">
<div class="liwu">
<img src="img/礼物.png" class="liwu"/>
<div class="text2"></div>
注册领<strong style="color: #ff4400;">199</strong>元大礼包
</div>
<br/>
<form action="so.do" method="post">
<div class="phone">
<label class="head">手机号</label>
<div class="phone_1">
<input type="text" class="phone" maxlength="11" placeholder="建议使用常用的手机号"/>
</div>
</div>
<div class="phone">
<label class="head">手机验证码</label>
<div class="phone_2">
<input type="text" class="phone" placeholder="请输入手机验证码"/>
</div>
<div class="phone_3">
<a href="" class="code">获取短信验证码</a>
</div>
</div>
<div class="phone">
<label class="head">设置密码</label>
<div class="phone_1">
<input type="text" class="phone" maxlength="11" placeholder="请输入密码"/>
</div>
</div>
<div class="submit">
<input type="submit" value="提交注册" class="submit"/>
</div>
<div class="qiye">
<a href="https://reg.suning.com/company.do" class="qiye"><img src="img/楼房-大厦.png" class="home"> 企业用户注册></a>
</div>
</form>
</div>
</div>
<div class="list1">
<p class="list">
<a href="" class="list">苏宁 互联 <span>|</span> 苏宁金融 <span>|</span> 苏宁支付 <span>|</span> PP视频 <span>|</span> 红孩子 <span>|</span>
苏宁物流 <span>|</span> 手机苏宁 <span>|</span> 零售云 <span>|</span> 苏宁云 <span>|</span> 知识产权举报 <span>|</span> 投资者关系 <span>|</span> 苏宁智能
</a>
</p>
<p class="list">
<a href="" class="list">联系我们 <span>|</span> 诚聘英才 <span>|</span> 合作招商
<span>|</span> 广告平台 <span>|</span> 苏宁联盟 <span>|</span>
苏宁招标 <span>|</span> 友情链接 <span>|</span> 隐私政策
<span>|</span> 用户体验提升计划 <span>|</span> 股东会员认证</a>
</p>
<p class="list2">
<a>Copyright© 2002-2020,苏宁易购集团股份有限公司版权所有 <span>|</span>
<img src="img/国徽.png" width="18px" height="18px" align="center"/> 苏公网安备 32010202010078号
<span>|</span> 苏ICP备10207551号-4
</a>
</p>
<p class="list2">
<a>
合字B2-20180025 <span>|</span> 合字A1.B1.B2-20180017 <span>|</span>
出版物经营许可证新出发苏批字第A-243号 <span>|</span> 互联网药品信息服务资格证书(苏)-非经营性-2016-0005
</a>
</p>
<p class="list2">
<a>
经营证照 <span>|</span> 网络文化经营许可证:苏网文〔2018〕10580-203号
<span>|</span> 互联网违法和不良信息举报邮箱:kfpt-yy@cnsuning.com <span>|</span>
举报电话:02566996699-865948
</a>
</p>
<p class="list2">
<a>
医疗器械网络交易服务第三方平台备案凭证-(苏)网械平台备字(2018)第00052号
</a>
</p>
<p class="list2">
<a>
本网站直接或间接向消费者推销商品或者服务的商业宣传均属于 "广告" (包装及参数、售后保障等商品信息除外)
</a>
</p>
<p>
<a>
<img src="" />
</a>
</p>
</div>
</div>
</body>
</html>
结束语
很多的实现方法仅仅用了所学的知识点,复杂化了其实现过程,相信之后的学习能让自己将该注册页面的实现过程简单化,模块化。