這是初期學(xué)習(xí)html和css的時(shí)候自己寫的一個(gè)界面,當(dāng)時(shí)做出來之后很有成就感惫确,故在此紀(jì)念一下(代碼冗余度很高R匮拧)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>網(wǎng)易注冊界面</title>
<style>
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
}
body{
background-color: #f8f8f8;
}
a{
text-decoration: none;
font-size: 12px;
line-height: 27px;
color: #989898;
}
/*頭部*/
.header{
width: 960px;
height: 77px;
/*background-color: red;*/
margin: 0 auto;
padding-top:27px;
box-sizing: border-box;
}
.header .logo{
width: 644px;
height: 27px;
float: left;
background: url("images/glb.png") no-repeat 0 0;
}
.header .logo a{
/*display: inline-block;*/
float: left;
width: 130px;
height: 27px;
}
.header .links{
width: 200px;
height: 27px;
float: right;
text-align: right;
color: #989898;
}
/*內(nèi)容*/
.content{
box-sizing:border-box;
width: 960px;
/*height: 600px;*/
height: 700px;
margin: 0 auto;
overflow: hidden;
}
.content .top{
box-sizing: border-box;
width: 960px;
height: 38px;
background: url("images/topcenter.png") repeat-x 0 0;
}
.content .left{
width: 960px;
height: 38px;
background: url("images/topleft.png") no-repeat left 0;
}
.content .right{
width: 960px;
height: 38px;
background: url("images/topright.png") no-repeat right 0;
}
.content .top h1{
font-family:"微軟雅黑";
font-size: 14px;
line-height:38px;
color: #ffffff;
margin-left:20px;
}
.content .bottom{
box-sizing: border-box;
width: 960px;
height: 662px;
}
/*內(nèi)容左側(cè)注冊界面*/
.content .bottom .contentBL{
width: 642px;
height: 662px;
box-sizing: border-box;
/*border-right: 2px solid #cbcbcb;*/
border-left: 1px solid #cbcbcb;
border-right: 1px solid #cbcbcb;
border-bottom: 1px solid #cbcbcb;
background-color: #fff;
float: left;
padding-top:50px;
padding-left: 80px;
}
.content .bottom .contentBL .contentBLTop{
width: 560px;
height: 60px;
}
.content .bottom .contentBL .contentBLTop ul{
width: 412px;
height: 34px;
background: url("images/tab.jpg") no-repeat left 0;
}
.content .bottom .contentBL .contentBLTop ul li{
list-style: none;
float: left;
line-height: 34px;
text-align: center;
width: 137px;
height: 34px;
color: #555;
font-size: 14px;
}
.content .bottom .contentBL .contentBLBottom{
width: 560px;
height: 551px;
/*background-color: green;*/
}
.content .bottom .contentBL .contentBLBottom .line{
width: 413px;
height: 60px;
}
.content .bottom .contentBL .contentBLBottom .line span{
width: 60px;
height: 28px;
float: left;
font-size: 13px;
line-height: 28px;
text-align: right;
}
.content .bottom .contentBL .contentBLBottom .line div input{
width: 212px;
height: 28px;
float: left;
color: #555;
font-size: 14px;
}
.content .bottom .contentBL .contentBLBottom .line div select{
width: 100px;
height: 32px;
float: right;
}
.content .bottom .contentBL .contentBLBottom .line p{
font-size: 12px;
color: #555;
/*text-align: center;*/
/*line-height: 28px;*/
}
.content .bottom .contentBL .contentBLBottom .line .name::before{
content: '*';
color: red;
}
.content .bottom .contentBL .contentBLBottom .line div{
width: 333px;
height: 28px;
line-height: 28px;
box-sizing: border-box;
float: right;
}
.content .bottom .contentBL .contentBLBottom .line div .init{
width: 329px;
height: 28px;
}
.content .bottom .contentBL .contentBLBottom .line div .yan{
width: 202px;
float: left;
}
.content .bottom .contentBL .contentBLBottom .line div .pic{
width: 110px;
font-size: 12px;
float: right;
}
.content .bottom .contentBL .contentBLBottom .line div .pic img{
width: 110px;
/*display: block;*/
}
.content .bottom .contentBL .contentBLBottom .bt{
width: 140px;
height: 30px;
margin-left: 80px;
margin-bottom:10px;
margin-top: 10px;
}
.content .bottom .contentBL .contentBLBottom .agree{
font-size: 12px;
color: #555;
line-height:20px;
margin-top: 10px;
margin-bottom: 10px;
margin-left:80px;
}
.content .bottom .contentBL .contentBLBottom input[type="submit"]{
width: 119px;
height: 37px;
background: url("images/glb.png") no-repeat -144px -360px;
border:none;
font-size: 20px;
color: white;
margin-left: 80px;
}
/*內(nèi)容右側(cè)廣告界面*/
.content .bottom .contentBR{
width: 318px;
height: 662px;
background-color: #f4f4f4;
float: right;
border-left: 1px solid #cbcbcb;
border-right: 1px solid #cbcbcb;
border-bottom: 1px solid #cbcbcb;
box-sizing: border-box;
padding-top: 105px;
padding-left: 45px;
}
/*底部*/
.footer{
width: 960px;
height: 48px;
margin: 0 auto;
color: #999;
font-family:Verdana;
font-size: 12px;
text-align: center;
}
.footer a{
color: #999;
text-decoration: none;
}
.footer .pp{
display: inline;
line-height: 48px;
}
</style>
</head>
<body>
<!--頭部-->
<div class="header">
<div class="logo">
<a href="#" title="網(wǎng)易163免費(fèi)郵"></a><a href="#" title="網(wǎng)易126免費(fèi)郵"></a><a href="#" title="網(wǎng)易Yeah.net免費(fèi)郵"></a>
</div>
<div class="links">
<a href="#">了解更多</a>
|
<a href="#">反饋意見</a>
</div>
</div>
<!--內(nèi)容-->
<div class="content">
<div class="top">
<div class="left">
<div class="right">
<h1>歡迎注冊無限容量的網(wǎng)易郵箱定躏!郵件地址可以登錄使用其他網(wǎng)易旗下產(chǎn)品痒留。</h1>
</div>
</div>
</div>
<!--注冊-->
<div class="bottom">
<div class="contentBL">
<div class="contentBLTop">
<ul>
<li>注冊字母郵箱</li>
<li>注冊手機(jī)號碼郵箱</li>
<li>注冊VIP郵箱</li>
</ul>
</div>
<div class="contentBLBottom">
<div class="line">
<span class="name">郵件地址</span>
<div>
<input type="text" value="建議用手機(jī)號碼注冊">@<select>
<option value="163.com">163.com</option>
<option value="126.com">126.com</option>
<option value="yeah.net">yeah.net</option>
</select>
<p>6~18個(gè)字符,可使用字母听哭、數(shù)字慢洋、下劃線,需以字母開頭</p>
</div>
</div>
<div class="line">
<span class="name">密碼</span>
<div>
<input class="init" type="password">
<p>6~16個(gè)字符陆盘,區(qū)分大小寫</p>
</div>
</div>
<div class="line">
<span class="name">確認(rèn)密碼</span>
<div>
<input class="init" type="password">
<p>請?jiān)俅翁顚懨艽a</p>
</div>
</div>
<div class="line">
<span class="name">手機(jī)號碼</span>
<div>
<input class="init" type="text" value="+86-">
<p>忘記密碼時(shí)且警,可以通過該手機(jī)號碼快速找回密碼</p>
</div>
</div>
<div class="line">
<span class="name">驗(yàn)證碼</span>
<div>
<div class="yan">
<input type="text">
<p>請?zhí)顚憟D片中的字符,不區(qū)分大小寫</p>
</div>
<div class="pic">
![](images/call.jpg)
<a href="#">看不清楚礁遣?換張圖片</a>
</div>
</div>
</div>
<button class="bt">免費(fèi)獲取驗(yàn)證碼</button>
<div class="line">
<span class="name">短信碼</span>
<div>
<input type="text" class="init">
<p>請查收手機(jī)短信,并填寫短信中的驗(yàn)證碼</p>
</div>
</div>
<div class="agree">
<p>
<input type="checkbox" checked="checked">
同意<a href="#">"服務(wù)條款"</a>和<a href="#">"隱私權(quán)相關(guān)政策"</a></p>
</div>
<div class="sub">
<input type="submit" value="立即注冊">
</div>
</div>
</div>
<!--右邊二維碼-->
<div class="contentBR">
![](images/app.jpg)
</div>
</div>
</div>
<div class="footer">
<a href="#">關(guān)于網(wǎng)易</a>
<a href="#">關(guān)于網(wǎng)易免費(fèi)郵</a>
<a href="#">郵箱官方博客</a>
<a href="#">客戶服務(wù)</a>
<a href="#">隱私政策</a>
<div class="pp">|</div>
<div class="pp">網(wǎng)易公司版權(quán)所有 ? 1997-2016</div>
</div>
</body>
</html>
網(wǎng)易注冊界面.png