<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>网易注册界面</title>
<style media="screen">
html{color:#000;background:#FFF}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0}table{border-collapse:collapse;border-spacing:0}fieldset,img{border:0}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal}ol,ul{list-style:none}caption,th{text-align:left}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}q:before,q:after{content:''}abbr,acronym{border:0;font-variant:normal}sup{vertical-align:text-top}sub{vertical-align:text-bottom}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;*font-size:100%}legend{color:#000}#yui3-css-stamp.cssreset{display:none}
body{
font-size: 12px;
font-family: "宋体";
}
a{
text-decoration:none;
/*font-size: 12px;*/
color: #ccc;
}
ul,ol{
list-style: none;
}
.header{
width: 960px;
height: 80px;
margin: 0 auto;
padding-top: 28px;
box-sizing: border-box;
}
.header .logo{
width: 644px;
height: 27px;
background: url(../image/glb_v2.png) no-repeat 0 0;
float: left;
}
.header .logo a {
width: 130px;
height: 27px;
display: inline-block;
}
.header .links{
width: 200px;
height: 27px;
float: right;
text-align: right;
line-height: 27px;
/*font-size: 12px;*/
/*color: #ccc;*/
}
.header .links a{
/*line-height: 27px;
font-size: 12px;*/
/*text-decoration: none;
color: #ccc;*/
}
.content{
width: 960px;
height: 600px;
margin: 0 auto;
}
.content .top {
width: 960px;
height: 38px;
background: url(../image/line-center.png) repeat-x;
}
.content .top .left{
width: 960px;
height: 38px;
background: url(../image/line-left.png) no-repeat left 0;
}
.content .top .left .right{
width: 960px;
height: 38px;
background: url(../image/line-right.png) no-repeat right 0;
}
.content .top .left .right h1{
color: #FFF;
font-size: 12px;
line-height: 38px;
text-indent: 2em;
}
.content .bottom {
width: 960px;
height: 562px;
border-top: none;
}
.content .bottom .article {
width: 642px;
height: 562px;
float: left;
padding-left: 80px;
padding-top: 50px;
box-sizing: border-box;
background-color: #F9F9F9;
border: 1px solid #ccc;
border-top: none;
}
.content .bottom .article .articleTop{
width: 560px;
height: 60px;
padding-top:
}
.content .bottom .article .articleTop ul{
/*list-style: none;*/
width: 412px;
height: 34px;
background: url(../image/tab.jpg) no-repeat left 0;
}
.content .bottom .article .articleTop ul li {
float: left;
width: 137px;
height: 34px;
text-align: center;
line-height: 34px;
}
.content .bottom .article .articleBottom{
width: 560px;
height: 373px;
}
.content .bottom .article .articleBottom .line{
width: 413px;
height: 28px;
}
.content .bottom .article .articleBottom .line span .star{
color: red;
width: 0px;/*span有默认宽度,可以通过内容适配*/
}
.content .bottom .article .articleBottom .line span{
width: 60px;
height: 28px;
float: left;
line-height: 28px;
/*font-size: 12px;*/
text-align: right;
}
.content .bottom .article .articleBottom .line div{
width: 333px;
height: 28px;
float: right;
}
.content .bottom .article .articleBottom .line div input{
width: 214px;
height: 24px;
}
.content .bottom .article .articleBottom .line div select{
width: 100px;
height: 24px;
}
.content .bottom .article .articleBottom p{
/*font-size: 12px;*/
margin-left: 80px;
line-height: 28px;
}
.content .bottom .article .articleBottom .line .special{
width: 324px;
}
.content .bottom .article .articleBottom .line .vocodeInput{
float: left;
margin-right: 10px;
}
.content .bottom .article .articleBottom .line img{
width: 100px;
height: 28px;
float: left;
}
.content .bottom .article .articleBottom input[type="submit"]{
width: 119px;
height: 37px;
background: url(../image/glb_v2.png) no-repeat 0px -360px;
border: none;
font-size: 18px;
color: white;
margin-left: 80px;
margin-top: 20px;
}
.content .bottom .aside {
width: 318px;
height: 562px;
float: right;
background-color: #F5F5F5;
padding-left: 45px;
padding-top: 105px;
box-sizing: border-box;
border: 1px solid #ccc;
border-top: none;
}
.footer{
width: 960px;
height: 48px;
margin: 0 auto;
}
.footer p{
/*font-size: 12px;*/
/*color: #ccc;*/
text-align: center;
line-height: 48px;
}
</style>
</head>
<body>
<!-- 头部开始 -->
<div class="header">
<div class="logo">
<a href="#" title="163网易免费邮箱"></a><a href="#" title="126网易免费邮箱"></a><a href="#" title="yeah网易免费邮箱"></a>
</div>
<div class="links">
<a href="#">了解更多</a>
|
<a href="#">反馈意见</a>
</div>
</div>
<!-- 头部结束 -->
<!-- 内容开始 -->
<div class="content">
<!-- 内容顶部 -->
<div class="top">
<div class="left">
<div class="right">
<h1>欢迎注册无限容量的网易邮箱!邮件地址可以登录使用其他网易旗下产品。</h1>
</div>
</div>
</div>
<!-- 内容顶部结束 -->
<!-- 内容底部 -->
<div class="bottom">
<div class="article">
<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 class="">
<input type="text" name="" value="建议使用手机号码注册">@<select class="" name="">
<option value="163.com">163.com</option>
<option value="126.com">126.com</option>
<option value="lnj.net">lnj.net</option>
</select>
</div>
</div>
<p>6~18个字符,可使用字母、数字、下划线,需以字母开头</p>
<div class="line">
<span><span class="star">*</span>密码</span>
<div class="">
<input type="password" name="" value="" class="special">
</div>
</div>
<p>6~16个字符,区分大小写</p>
<div class="line">
<span><span class="star">*</span>确认密码</span>
<div class="">
<input type="password" name="" value="" class="special">
</div>
</div>
<p>请再次填写密码</p>
<div class="line">
<span><span class="star">*</span>手机号码</span>
<div class="">
<input type="number" name="" value="" class="special">
</div>
</div>
<p>忘记密码时,可以通过该手机号码快速找回密码</p>
<div class="line">
<span><span class="star">*</span>验证码</span>
<div class="">
<input type="text" name="" value="" class="vocodeInput">
![](../image/call.jpeg)
</div>
</div>
<p>请填写图片中的字符,不区分大小写</p>
<p>
<input type="checkbox" name="" value="" checked>
同意
<a href="#">"服务条款"</a>
和
<a href="#">"隐私权相关政策"</a>
</p>
<input type="submit" name="" value="立即提交">
</div>
</div>
<div class="aside">
![](../image/reg_master.gif)
</div>
</div>
<!-- 内容底部结束 -->
</div>
<!-- 内容结束 -->
<div class="footer">
<p>
<a href="#">关于网易</a>
<a href="#">关于网易免费邮</a>
<a href="#">邮箱官方博客</a>
<a href="#">客户服务</a>
<a href="#">隐私政策</a>
| 网易公司版权所有 © 1997-2017
</p>
</div>
</body>
</html>
第137-145课网易实战
1、父子关系用padding,兄弟之间用margin
2、导航条,选项卡首先想到ul li float
3、span 默认有自己宽度,可以设置width=0,根据内容适配
4、input 默认有边框
5、想让两个盒子顶部对齐,那么就让两个盒子浮动float起来
6、添加适当的注释
7、清空默认的边距
8、清空默认的样式
a{
text-decoration:none;
font-size:12px;
color:#ccc;
}
ul,ol{
list-style:none;
}
9、利用body设置整个界面的文字信息 文字大小 字体 颜色
body{
font-size:12px;
font-family:"宋体";
color:#ccc;
}