三个页面,分别是首页(index),手机列表页(list)和注册页(register)
1.首页
①html
<!DOCTYPE html>
<html lang="zh-cn">
<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">
<meta name="description" content="品优购商城-专业的综合网上购物商城,销售家电、数码通讯、电脑、家居百货、服装服饰、母婴、图书、食品等数万个品牌优质商品.便捷、诚信的服务,为您提供愉悦的网上购物体验!" />
<!-- 关键字 -->
<meta name="keywords" content="网上购物,网上商城,手机,笔记本,电脑,MP3,CD,VCD,DV,相机,数码,配件,手表,存储卡,京东" />
<title>品优购商城-综合网购首选-正品低价、品质保障、配送及时、轻松购物!</title>
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/common.css">
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="css/index.css">
<style>
</style>
</head>
<body>
<!-- 快捷导航模块开始 -->
<section class="shortcut ">
<div class="w">
<div class="fl ">
<ul>
<li><a href="#">品优购欢迎您! </a></li>
<li><a href="#">请登录</a> <a href="register.html" class="style-red">请注册</a></li>
</ul>
</div>
<div class="fr ">
<ul>
<li><a href="#">我的订单</a></li>
<li></li>
<li><a href="#" class="arrow-icon">我的品优购</a></li>
<li></li>
<li><a href="#">品优购会员</a></li>
<li></li>
<li><a href="#"> 企业采购</a></li>
<li></li>
<li><a href="#" class="arrow-icon">关注品优购</a></li>
<li></li>
<li><a href="#" class="arrow-icon">客户服务</a></li>
<li></li>
<li><a href="#" class="arrow-icon">网站导航</a></li>
</ul>
</div>
</div>
</section>
<!-- 快捷导航模块结束 -->
<!-- 头部模块开始 -->
<header class="header w">
<div class="logo">
<h1>
<a href="index.html" title="品优购">品优购</a>
</h1>
</div>
<!-- 搜索模块 -->
<div class="search">
<input type="search">
<button>搜索</button>
</div>
<!-- 热词模块 -->
<div class="hotword">
<a href="#" class="style-red">优惠购首发</a>
<a href="#">亿元优惠</a>
<a href="#">9.9元团购</a>
<a href="#">美满99减30</a>
<a href="#">办公用品</a>
<a href="#">电脑</a>
<a href="#">通信</a>
</div>
<div class="shopcar">
我的购物车
<i class="count">8</i>
</div>
</header>
<!-- 头部模块结束 -->
<!-- 导航模块开始 -->
<div class="nav">
<div class="w">
<div class="drowdown">
<div class="dt">全部商品分类</div>
<div class="dd">
<ul>
<li><a href="#">家用电器</a></li>
<li><a href="list.html">手机</a>、<a href="#">数码</a>、<a href="#">通信</a></li>
<li><a href="#">电脑</a>、<a href="#">办公</a>、</li>
<li><a href="#"> 家居</a>、<a href="#">家具</a>、<a href="#">家装</a>、<a href="#">厨具</a></li>
<li><a href="#"> 男装</a>、<a href="#">女装</a>、<a href="#">童装</a>、<a href="#">内衣</a></li>
<li><a href="#"> 个户化妆</a>、<a href="#">清洁用品</a>、<a href="#">宠物</a></li>
<li><a href="#"> 鞋靴</a>、<a href="#">箱包</a>、<a href="#">珠宝</a>、<a href="#">奢侈品</a></li>
<li><a href="#">运动户外</a>、<a href="#">钟表</a></li>
<li><a href="#">汽车</a>、<a href="#">汽车用品</a></li>
<li><a href="#">母婴</a>、<a href="#">玩具乐器</a></li>
<li><a href="#"> 食品</a>、<a href="#">酒类</a>、<a href="#">生鲜</a>、<a href="#">特产</a></li>
<li><a href="#">医药保健</a></li>
<li><a href="#">图书</a>、<a href="#">音像</a>、<a href="#">电子书</a></li>
<li><a href="#"> 彩票</a>、<a href="#">旅行</a>、<a href="#">充值</a>、<a href="#">票务</a></li>
<li><a href="#"> 理财</a>、<a href="#">众筹</a>、<a href="#">白条</a>、<a href="#">保险</a></li>
</ul>
</div>
</div>
<div class="navitems">
<ul>
<li><a href="#">服装城</a></li>
<li><a href="#">美妆馆</a></li>
<li><a href="#">传智超市</a></li>
<li><a href="#">全球购 </a></li>
<li><a href="#">闪购 </a></li>
<li><a href="#"> 团购 </a></li>
<li><a href="#">拍卖 </a></li>
<li><a href="#"> 有趣 </a></li>
</ul>
</div>
</div>
</div>
<!-- 导航模块结束 -->
<!-- 首页模块main开始 -->
<div class="w">
<div class="main ">
<div class="focus">
<ul>
<li><img src="upload/focus.png" alt=""></li>
</ul>
<div class="prev"><</div>
<div class="next">></div>
<div class="promo-nav">
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</div>
</div>
<div class="newflash">
<div class="new">
<div class="new-hd">
<h5>品优购快报</h5>
<a href="#">更多</a>
</div>
<div class="new-bd">
<ul>
<li><a href="#"><strong>【特惠】</strong>战备开学季,全名半价公司的灌水灌水</a></li>
<li><a href="#"><strong>【特惠】</strong>战备开学季,全名半价</a></li>
<li><a href="#"><strong>【特惠】</strong>战备开学季,全名半价</a></li>
<li><a href="#"><strong>【特惠】</strong>战备开学季,全名半价</a></li>
<li><a href="#"><strong>【特惠】</strong>战备开学季,全名半价</a></li>
</ul>
</div>
</div>
<div class="lifeservice">
<ul>
<li>
<i></i>
<p>花费</p>
</li>
<li><i></i>
<p>花费</p>
</li>
<li><i></i>
<p>花费</p>
</li>
<li><i></i>
<p>花费</p>
</li>
<li><i></i>
<p>花费</p>
</li>
<li><i></i>
<p>花费</p>
</li>
<li><i></i>
<p>花费</p>
</li>
<li><i></i>
<p>花费</p>
</li>
<li><i></i>
<p>花费</p>
</li>
<li><i></i>
<p>花费</p>
</li>
<li><i></i>
<p>花费</p>
</li>
<li><i></i>
<p>花费</p>
</li>
</ul>
</div>
<div class="bargain"><img src="upload/bargain.png" alt=""></div>
</div>
</div>
</div>
<!-- 首页模块main结束 -->
<!-- 推荐模块start -->
<div class="w recom">
<div class="recom_hd"><img src="../shoping/images/recom.png" alt=""></div>
<div class="recom_bd">
<ul>
<li><img src="upload/images/recom_03.png" alt="#"></li>
<li><img src="upload/images/recom_05.png" alt="#"></li>
<li><img src="upload/images/recom_09.png" alt="#"></li>
<li><img src="upload/images/recom_07.png" alt="#"></li>
</ul>
</div>
</div>
<!-- 推荐模块end -->
<!-- 猜你喜欢模块start -->
<div class="cai w">
<div class="cai_hd">
<ul>
<li>
<h4>猜你喜欢</h4>
</li>
<li><a href="#">换一批 </a></li>
<li><i></i></li>
</ul>
</div>
<div class="cai_bd">
<ul>
<li>
<img src="images/cai01.png" alt="" class="one">
<p class="wenzi">阳光美包新款单肩包女
<br> 包时尚子母包四件套女</p>
<p class="price">¥116.00</p>
</li>
<li>
<img src="images/cai02.png" alt="" class="two">
<p class="wenzi">阳光美包新款单肩包女
<br> 包时尚子母包四件套女</p>
<p class="price">¥116.00</p>
</li>
<li>
<img src="images/cai03.png" alt="" class="three">
<p class="wenzi">阳光美包新款单肩包女
<br> 包时尚子母包四件套女</p>
<p class="price">¥116.00</p>
</li>
<li>
<img src="images/cai04.png" alt="" class="four">
<p class="wenzi">阳光美包新款单肩包女
<br> 包时尚子母包四件套女</p>
<p class="price">¥116.00</p>
</li>
<li>
<img src="images/cai05.png" alt="" class="five">
<p class="wenzi">阳光美包新款单肩包女
<br> 包时尚子母包四件套女</p>
<p class="price">¥116.00</p>
</li>
<li>
<img src="images/cai06.png" alt="" class="six">
<p>阳光美包新款单肩包女
<br> 包时尚子母包四件套女</p>
<p class="price">¥116.00</p>
</li>
</ul>
</div>
</div>
<!-- 猜你喜欢模块end -->
<!-- 家用电器start -->
<div class="w jiadian">
<div class="box_hd">
<h3>家用电器</h3>
<div class="tab_list">
<ul>
<li><a href="#" class="style-red">热门</a>|</li>
<li><a href="#">大家电</a>|</li>
<li><a href="#">生活电器</a>|</li>
<li><a href="#">厨房电器</a>|</li>
<li><a href="#">个护健康</a>|</li>
<li><a href="#">应季电器</a>|</li>
<li><a href="#">空气/净水</a>|</li>
<li><a href="#">新奇特</a>|</li>
<li><a href="#">高端电器</a></li>
</ul>
</div>
</div>
<div class="box_bd">
<div class="tab_content">
<div class="tab_list_item">
<div class="col_210">
<ul>
<li><a href="#">节能补贴</a></li>
<li><a href="#">节能补贴</a></li>
<li><a href="#">节能补贴</a></li>
<li><a href="#">节能补贴</a></li>
<li><a href="#">节能补贴</a></li>
<li><a href="#">节能补贴</a></li>
</ul>
<a href="#">
<img src="images/tv.png" alt="">
</a>
</div>
<div class="col_329">
<a href="#">
<img src="upload/dianshuihu.png" alt="">
</a>
<ul>
<li></li>
<li></li>
<li></li>
</ul>
</div>
<div class="col_219">
<a href="#"><img src="upload/mei.png" alt=""></a>
<a href="#" class="leshi"><img src="upload/leshi.png" alt=""></a>
</div>
<div class="col1_219">
<a href="#"><img src="upload/8.20彩电宅购节65寸4K智能电视3799.png" alt=""></a>
</div>
<div class="col_219">
<a href="#"><img src="upload/mei.png" alt=""></a>
<a href="#" class="leshi"><img src="upload/leshi.png" alt=""></a>
</div>
</div>
</div>
</div>
</div>
<!-- 家用电器end -->
<!-- footer模块开始 -->
<div class="footer">
<div class="w">
<div class="mod-serive">
<ul>
<li>
<h5></h5>
<div class="serve-text">
<h4>正品保障</h4>
<p>正品保障,提供发票</p>
</div>
</li>
<li>
<h5 class="two"></h5>
<div class="serve-text">
<h4>极速物流</h4>
<p>急速物流,急速送达</p>
</div>
</li>
<li>
<h5 class="three"></h5>
<div class="serve-text">
<h4>正品保障</h4>
<p>正品保障,提供发票</p>
</div>
</li>
<li>
<h5 class="four"></h5>
<div class="serve-text">
<h4>正品保障</h4>
<p>正品保障,提供发票</p>
</div>
</li>
<li>
<h5 class="five"></h5>
<div class="serve-text">
<h4>正品保障</h4>
<p>正品保障,提供发票</p>
</div>
</li>
</ul>
</div>
<div class="mod-help">
<dl>
<dt><a href="#">购物指南</a></dt>
<dd><a href="#">购物流程</a></dd>
<dd><a href="#">会员介绍</a></dd>
<dd><a href="#">生活旅行/团购</a></dd>
<dd><a href="#">常见问题</a></dd>
<dd><a href="#">大家电</a></dd>
<dd><a href="#">联系客服</a></dd>
</dl>
<dl>
<dt><a href="#">购物指南</a></dt>
<dd><a href="#">购物流程</a></dd>
<dd><a href="#">会员介绍</a></dd>
<dd><a href="#">生活旅行/团购</a></dd>
<dd><a href="#">常见问题</a></dd>
<dd><a href="#">大家电</a></dd>
<dd><a href="#">联系客服</a></dd>
</dl>
<dl>
<dt><a href="#">购物指南</a></dt>
<dd><a href="#">购物流程</a></dd>
<dd><a href="#">会员介绍</a></dd>
<dd><a href="#">生活旅行/团购</a></dd>
<dd><a href="#">常见问题</a></dd>
<dd><a href="#">大家电</a></dd>
<dd><a href="#">联系客服</a></dd>
</dl>
<dl>
<dt><a href="#">购物指南</a></dt>
<dd><a href="#">购物流程</a></dd>
<dd><a href="#">会员介绍</a></dd>
<dd><a href="#">生活旅行/团购</a></dd>
<dd><a href="#">常见问题</a></dd>
<dd><a href="#">大家电</a></dd>
<dd><a href="#">联系客服</a></dd>
</dl>
<dl>
<dt><a href="#">购物指南</a></dt>
<dd><a href="#">购物流程</a></dd>
<dd><a href="#">会员介绍</a></dd>
<dd><a href="#">生活旅行/团购</a></dd>
<dd><a href="#">常见问题</a></dd>
<dd><a href="#">大家电</a></dd>
<dd><a href="#">联系客服</a></dd>
</dl>
<dl>
<dt><a href="#">购物指南</a></dt>
<dd>
<img src="../shoping/images/wx_cz.jpg" alt="">
</dd>
<dd><a href="#">品优购客户端</a></dd>
</dl>
</div>
<div class="mod-copyright">
<div class="links">
<a href="#">关于我们</a> | <a href="#">联系我们</a> | <a href="#">联系客服 </a> | <a href="#">商家入驻</a> | <a href="#">营销中心</a> | <a href="#">手机品优购</a> | <a href="#">友情链接</a> | <a href="#">销售联盟</a> | <a href="#">品优购社区</a> | <a href="#">品优购公益</a> | <a href="#">English Site</a> | <a href="#">Contact U</a>
</div>
<div class="copyright">
地址:北京市昌平区建材城西路金燕龙办公楼一层 邮编:100096 电话:400-618-4000 传真:010-82935100 邮箱: zhanghj+itcast.cn <br> 京ICP备08001421号京公网安备110108007702
</div>
</div>
</div>
</div>
</body>
</html>
②css
.main {
margin-top: 10px;
margin-left: 219px;
width: 981px;
height: 455px;
/* background-color: pink; */
}
@font-face {
font-family: 'icomoon';
src: url('../fonts/icomoon.eot?94oja2');
src: url('../fonts/icomoon.eot?94oja2#iefix') format('embedded-opentype'), url('../fonts/icomoon.ttf?94oja2') format('truetype'), url('../fonts/icomoon.woff?94oja2') format('woff'), url('../fonts/icomoon.svg?94oja2#icomoon') format('svg');
font-weight: normal;
font-style: normal;
font-display: block;
}
.main .focus {
overflow: hidden;
position: relative;
float: left;
width: 722px;
height: 455px;
background-color: plum;
}
.main .focus li img {
width: 100%;
}
.main .focus .prev {
position: absolute;
top: 50%;
left: -6px;
margin-top: -15px;
font-size: 20px;
color: #fff;
line-height: 30px;
text-align: center;
width: 30px;
height: 30px;
background: rgba(0, 0, 0, .3);
border-top-right-radius: 15px;
border-bottom-right-radius: 15px;
}
.main .focus .next {
position: absolute;
top: 50%;
right: -6px;
margin-top: -15px;
font-size: 20px;
color: #fff;
line-height: 30px;
text-align: center;
width: 30px;
height: 30px;
background: rgba(0, 0, 0, .3);
border-top-left-radius: 15px;
border-bottom-left-radius: 15px;
}
.main .focus .promo-nav {
position: absolute;
bottom: 20px;
left: 50%;
margin-left: -50px;
border-radius: 15px;
width: 100px;
height: 30px;
background: rgba(255, 255, 255, .3);
}
.main .focus .promo-nav ul li:first-child {
background-color: #ff5000;
}
.main .focus .promo-nav ul li {
float: left;
list-style: none;
margin: 6px;
margin-top: 10px;
border-radius: 6px;
width: 12px;
height: 12px;
background-color: #fff;
}
.main .newflash {
float: right;
width: 250px;
height: 455px;
}
.newflash .new {
width: 248px;
height: 165px;
border: 1px solid #e4e4e4;
}
.newflash .new .new-hd {
/* width: 250px; */
padding: 0 15px;
height: 33px;
border-bottom: 1px dashed #e8e8e7;
}
.newflash .new .new-hd h5 {
margin-top: 10px;
float: left;
color: #333;
font-size: 14px;
}
.newflash .new .new-hd a {
margin-top: 10px;
float: right;
}
.newflash .new .new-hd a::after {
margin-top: 10px;
font-family: 'icomoon';
content: "\ea42";
}
.newflash .new .new-bd {
padding: 10px 10px 0;
}
.newflash .new .new-bd li {
height: 22px;
line-height: 22px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.newflash .lifeservice {
height: 209px;
border: 1px solid #e4e4e4;
border-top: none;
overflow: hidden;
}
.newflash .lifeservice ul {
width: 256px;
}
.newflash .lifeservice ul li {
float: left;
width: 63px;
height: 69px;
text-align: center;
border-right: 1px solid #e4e4e4;
border-bottom: 1px solid #e4e4e4;
}
.newflash .lifeservice ul li i {
display: inline-block;
margin-top: 8px;
margin-bottom: 6px;
width: 22px;
height: 28px;
background-color: pink;
background: url(../images/icons.png ) no-repeat -18px -12px;
}
.newflash .bargain {
margin-top: 2px;
width: 250px;
height: 76px;
background-color: red;
}
.newflash .bargain img {
width: 100%;
height: 100%;
}
/* 推荐模块start */
.recom {
height: 163px;
margin-top: 11px;
background-color: #ebebeb;
}
.recom .recom_hd {
float: left;
width: 206px;
height: 163px;
background-color: #5c5251;
line-height: 163px;
text-align: center;
}
.recom .recom_hd img {
height: 88px;
width: 75px;
}
.recom .recom_bd {
float: left;
}
.recom .recom_bd ul li {
position: relative;
float: left;
width: 248px;
height: 162px;
}
.recom .recom_bd ul li img {
width: 248px;
height: 162px;
}
.recom .recom_bd ul li:nth-child(-n+3)::after {
position: absolute;
top: 10px;
right: 0;
content: '';
width: 1px;
height: 143px;
background-color: #dddddd;
}
.cai {
margin-top: 25px;
height: 274px;
}
.cai .cai_hd {
position: relative;
height: 30px;
padding-right: 10px;
border-bottom: 1px solid #ededed;
}
.cai .cai_hd ul li h4 {
font-size: 14px;
}
.cai .cai_hd ul li {
line-height: 30px;
float: left;
}
.cai .cai_hd ul li:nth-child(2) {
padding-right: 8px;
float: right;
}
.cai .cai_hd ul li a {
margin-right: 10px;
}
.cai .cai_hd ul li i {
float: right;
position: absolute;
top: 2px;
right: 0;
background: url(../images/icons.png) no-repeat -418px -105px;
width: 20px;
height: 20px;
}
.cai .cai_bd ul {
width: 1200px;
height: 220px;
border: 1px solid #e4e4e4;
border-top: none;
}
.cai .cai_bd ul li {
position: relative;
float: left;
width: 200px;
height: 180px;
}
.cai .cai_bd ul li .one {
margin-left: 15px;
}
.cai .cai_bd ul li .two {
margin-left: 25px;
margin-top: 15px;
}
.cai .cai_bd ul li .three {
margin-left: 70px;
margin-top: 10px;
}
.cai .cai_bd ul li .four {
margin-left: 35px;
margin-top: 40px;
margin-bottom: 35px;
}
.cai .cai_bd ul li .five {
margin-left: 35px;
margin-top: 5px;
}
.cai .cai_bd ul li .six {
margin-left: 55px;
margin-top: 5px;
}
.cai .cai_bd ul li p {
margin-left: 35px;
}
.cai .cai_bd ul li .wenzi::after {
position: absolute;
content: "";
right: 0;
top: 141px;
width: 1px;
height: 62px;
background-color: #e4e4e4;
}
.cai .cai_bd ul li .price {
font-size: 14px;
color: #df3033;
}
/* 推荐模块end */
/* 家用电器模块start */
.jiadian .box_hd {
border-bottom: 2px solid #c81623;
height: 30px;
}
.jiadian .box_hd h3 {
float: left;
color: #c81623;
font-size: 18px;
font-weight: normal;
}
.jiadian .box_hd .tab_list {
float: right;
height: 30px;
line-height: 30px;
}
.jiadian .box_hd .tab_list ul li {
float: left;
}
.jiadian .box_hd .tab_list ul li a {
margin: 0 15px;
}
.jiadian .box_bd .tab_content {
width: 1200px;
height: 361px;
}
.jiadian .box_bd .tab_content .col_210 {
float: left;
text-align: center;
width: 210px;
height: 361px;
background-color: #f9f9f9;
}
.jiadian .box_bd .tab_content .col_210 ul {
padding-left: 12px;
margin-bottom: 26px;
height: 99px;
}
.jiadian .box_bd .tab_content .col_210 ul li {
float: left;
margin-right: 10px;
width: 86px;
line-height: 36px;
height: 32px;
border-bottom: 1px solid #ededed;
}
.jiadian .box_bd .tab_content .col_329 {
position: relative;
float: left;
width: 329px;
height: 361px;
}
.jiadian .box_bd .tab_content .col_329 ul {
position: absolute;
bottom: 36px;
width: 51px;
right: 50%;
margin: -25px;
}
.jiadian .box_bd .tab_content .col_329 ul li:nth-child(1) {
background-color: #ffffff;
}
.jiadian .box_bd .tab_content .col_329 ul li {
float: left;
margin-right: 7px;
width: 10px;
height: 10px;
border-radius: 5px;
background-color: #3e3e3e;
}
.jiadian .box_bd .tab_content .col_329 a {
display: block;
width: 329px;
height: 361px;
}
.jiadian .box_bd .tab_content .col_329 img {
width: 100%;
height: 100%;
}
.jiadian .box_bd .tab_content .col_219 a img {
position: absolute;
top: 25px;
left: 19px;
}
.jiadian .box_bd .tab_content .col_219 .leshi {
display: block;
position: relative;
height: 180px;
width: 219px;
}
.jiadian .box_bd .tab_content .col_219 .leshi img {
position: absolute;
top: 19px;
left: 17px;
}
.jiadian .box_bd .tab_content .col_219 a {
display: block;
position: relative;
border-bottom: 1px solid #e4e4e4;
height: 180px;
width: 219px;
}
.jiadian .box_bd .tab_content .col_219 {
float: left;
border-right: 1px solid #e4e4e4;
border-bottom: 1px solid #e4e4e4;
width: 219px;
height: 361px;
}
.jiadian .box_bd .tab_content .col1_219 {
float: left;
border-right: 1px solid #e4e4e4;
border-bottom: 1px solid #e4e4e4;
width: 219px;
height: 361px;
}
.jiadian .box_bd .tab_content .col1_219 a {
display: block;
position: relative;
width: 219px;
height: 361px;
}
.jiadian .box_bd .tab_content .col1_219 a img {
position: absolute;
top: 72px;
left: 23px;
}
/* 家用电器模块end */
二,手机列表
①html
<!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">
<meta name="description" content="品优购商城-专业的综合网上购物商城,销售家电、数码通讯、电脑、家居百货、服装服饰、母婴、图书、食品等数万个品牌优质商品.便捷、诚信的服务,为您提供愉悦的网上购物体验!" />
<!-- 关键字 -->
<meta name="keywords" content="网上购物,网上商城,手机,笔记本,电脑,MP3,CD,VCD,DV,相机,数码,配件,手表,存储卡,京东" />
<title>列表页-综合网购首选-正品低价、品质保障、配送及时、轻松购物!</title>
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/common.css">
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="css/list.css">
</head>
<body>
<!-- 快捷导航模块开始 -->
<section class="shortcut ">
<div class="w">
<div class="fl ">
<ul>
<li><a href="#">品优购欢迎您! </a></li>
<li><a href="#">请登录</a> <a href="register.html" class="style-red">请注册</a></li>
</ul>
</div>
<div class="fr ">
<ul>
<li><a href="#">我的订单</a></li>
<li></li>
<li><a href="#" class="arrow-icon">我的品优购</a></li>
<li></li>
<li><a href="#">品优购会员</a></li>
<li></li>
<li><a href="#"> 企业采购</a></li>
<li></li>
<li><a href="#" class="arrow-icon">关注品优购</a></li>
<li></li>
<li><a href="#" class="arrow-icon">客户服务</a></li>
<li></li>
<li><a href="#" class="arrow-icon">网站导航</a></li>
</ul>
</div>
</div>
</section>
<!-- 快捷导航模块结束 -->
<!-- 头部模块开始 -->
<header class="header w">
<div class="logo">
<h1>
<a href="index.html" title="品优购">品优购</a>
</h1>
</div>
<!-- 秒杀模块start -->
<div class="sk">
<img src="images/sk.png" alt="">
</div>
<!-- 秒杀模块end -->
<!-- 搜索模块 -->
<div class="search">
<input type="search">
<button>搜索</button>
</div>
<!-- 热词模块 -->
<div class="hotword">
<a href="#" class="style-red">优惠购首发</a>
<a href="#">亿元优惠</a>
<a href="#">9.9元团购</a>
<a href="#">美满99减30</a>
<a href="#">办公用品</a>
<a href="#">电脑</a>
<a href="#">通信</a>
</div>
<div class="shopcar">
我的购物车
<i class="count">8</i>
</div>
</header>
<!-- 头部模块结束 -->
<!-- 导航模块开始 -->
<div class="nav">
<div class="w sk">
<div class="sk_list">
<ul>
<li><a href="#">品优秒杀</a></li>
<li><a href="#">即将售罄</a></li>
<li><a href="#">超值低价</a></li>
</ul>
</div>
<div class="sk_con">
<ul>
<li><a href="#">女装</a></li>
<li><a href="#" style="color: #b73738;">女装</a></li>
<li><a href="#">女装</a></li>
<li><a href="#">女装</a></li>
<li><a href="#">母婴童装 </a></li>
<li><a href="#">女装</a></li>
<li><a href="#">智能数码 </a></li>
<li><a href="#">运动户外</a></li>
<li><a href="#" class="more">更多分类</a></li>
</ul>
</div>
</div>
</div>
<!-- 导航模块结束 -->
<!-- 主题模块start -->
<div class="sk_container w">
<div class="sk_hd">
<img src="images/正在抢购.png" alt="">
</div>
<div class="sk_bd">
<ul class="clearfix">
<li>
<img src="images/phone.png" alt="">
<p>Apple苹果iPhone 6s Plus(A1699)32G 金色 移动联通电信4G手机</p>
<span class="one">¥6088</span><span class="two">¥6988</span><br>
<div class="bottom">
<span>已售87%</span>
<div class="footer">
<div class="footer_in"></div>
</div>
<span>剩余<p>29</p>件</span>
</div>
<button>立即抢购</button>
</li>
<li>
<img src="images/phone.png" alt="">
<p>Apple苹果iPhone 6s Plus(A1699)32G 金色 移动联通电信4G手机</p>
<span class="one">¥6088</span><span class="two">¥6988</span><br>
<div class="bottom">
<span>已售87%</span>
<div class="footer">
<div class="footer_in"></div>
</div>
<span>剩余<p>29</p>件</span>
</div>
<button>立即抢购</button>
</li>
<li>
<img src="images/phone.png" alt="">
<p>Apple苹果iPhone 6s Plus(A1699)32G 金色 移动联通电信4G手机</p>
<span class="one">¥6088</span><span class="two">¥6988</span><br>
<div class="bottom">
<span>已售87%</span>
<div class="footer">
<div class="footer_in"></div>
</div>
<span>剩余<p>29</p>件</span>
</div>
<button>立即抢购</button>
</li>
<li>
<img src="images/phone.png" alt="">
<p>Apple苹果iPhone 6s Plus(A1699)32G 金色 移动联通电信4G手机</p>
<span class="one">¥6088</span><span class="two">¥6988</span><br>
<div class="bottom">
<span>已售87%</span>
<div class="footer">
<div class="footer_in"></div>
</div>
<span>剩余<p>29</p>件</span>
</div>
<button>立即抢购</button>
</li>
</ul>
</div>
</div>
<!-- 主题模块end -->
<!-- footer模块开始 -->
<div class="footer">
<div class="w">
<div class="mod-serive">
<ul>
<li>
<h5></h5>
<div class="serve-text">
<h4>正品保障</h4>
<p>正品保障,提供发票</p>
</div>
</li>
<li>
<h5 class="two"></h5>
<div class="serve-text">
<h4>极速物流</h4>
<p>急速物流,急速送达</p>
</div>
</li>
<li>
<h5 class="three"></h5>
<div class="serve-text">
<h4>正品保障</h4>
<p>正品保障,提供发票</p>
</div>
</li>
<li>
<h5 class="four"></h5>
<div class="serve-text">
<h4>正品保障</h4>
<p>正品保障,提供发票</p>
</div>
</li>
<li>
<h5 class="five"></h5>
<div class="serve-text">
<h4>正品保障</h4>
<p>正品保障,提供发票</p>
</div>
</li>
</ul>
</div>
<div class="mod-help">
<dl>
<dt><a href="#">购物指南</a></dt>
<dd><a href="#">购物流程</a></dd>
<dd><a href="#">会员介绍</a></dd>
<dd><a href="#">生活旅行/团购</a></dd>
<dd><a href="#">常见问题</a></dd>
<dd><a href="#">大家电</a></dd>
<dd><a href="#">联系客服</a></dd>
</dl>
<dl>
<dt><a href="#">购物指南</a></dt>
<dd><a href="#">购物流程</a></dd>
<dd><a href="#">会员介绍</a></dd>
<dd><a href="#">生活旅行/团购</a></dd>
<dd><a href="#">常见问题</a></dd>
<dd><a href="#">大家电</a></dd>
<dd><a href="#">联系客服</a></dd>
</dl>
<dl>
<dt><a href="#">购物指南</a></dt>
<dd><a href="#">购物流程</a></dd>
<dd><a href="#">会员介绍</a></dd>
<dd><a href="#">生活旅行/团购</a></dd>
<dd><a href="#">常见问题</a></dd>
<dd><a href="#">大家电</a></dd>
<dd><a href="#">联系客服</a></dd>
</dl>
<dl>
<dt><a href="#">购物指南</a></dt>
<dd><a href="#">购物流程</a></dd>
<dd><a href="#">会员介绍</a></dd>
<dd><a href="#">生活旅行/团购</a></dd>
<dd><a href="#">常见问题</a></dd>
<dd><a href="#">大家电</a></dd>
<dd><a href="#">联系客服</a></dd>
</dl>
<dl>
<dt><a href="#">购物指南</a></dt>
<dd><a href="#">购物流程</a></dd>
<dd><a href="#">会员介绍</a></dd>
<dd><a href="#">生活旅行/团购</a></dd>
<dd><a href="#">常见问题</a></dd>
<dd><a href="#">大家电</a></dd>
<dd><a href="#">联系客服</a></dd>
</dl>
<dl>
<dt><a href="#">购物指南</a></dt>
<dd>
<img src="../shoping/images/wx_cz.jpg" alt="">
</dd>
<dd><a href="#">品优购客户端</a></dd>
</dl>
</div>
<div class="mod-copyright">
<div class="links">
<a href="#">关于我们</a> | <a href="#">联系我们</a> | <a href="#">联系客服 </a> | <a href="#">商家入驻</a> | <a href="#">营销中心</a> | <a href="#">手机品优购</a> | <a href="#">友情链接</a> | <a href="#">销售联盟</a> | <a href="#">品优购社区</a> | <a href="#">品优购公益</a> | <a href="#">English Site</a> | <a href="#">Contact U</a>
</div>
<div class="copyright">
地址:北京市昌平区建材城西路金燕龙办公楼一层 邮编:100096 电话:400-618-4000 传真:010-82935100 邮箱: zhanghj+itcast.cn <br> 京ICP备08001421号京公网安备110108007702
</div>
</div>
</div>
</div>
</body>
</html>
②css
* {
margin: 0;
padding: 0;
}
.header .sk {
position: absolute;
padding-left: 14px;
left: 185px;
top: 43px;
border-left: 1px solid #b1191a;
}
@font-face {
font-family: 'icomoon';
src: url('../fonts/icomoon.eot?94oja2');
src: url('../fonts/icomoon.eot?94oja2#iefix') format('embedded-opentype'), url('../fonts/icomoon.ttf?94oja2') format('truetype'), url('../fonts/icomoon.woff?94oja2') format('woff'), url('../fonts/icomoon.svg?94oja2#icomoon') format('svg');
font-weight: normal;
font-style: normal;
font-display: block;
}
.sk_list {
float: left;
}
.sk_list ul li {
float: left;
padding: 0 29px;
height: 46px;
line-height: 46px;
}
.sk_list ul li a {
display: block;
font-size: 16px;
font-weight: 700;
color: #333;
}
.sk_con {
float: right;
margin-right: 38px;
}
.sk_con ul li {
float: left;
padding: 0 23px;
height: 46px;
line-height: 46px;
}
.sk_con ul li a {
display: block;
font-size: 14px;
color: #666;
}
.sk_con ul li .more::after {
content: "\ea43";
font-family: 'icomoon';
}
.sk_container {
width: 1200px;
}
.sk_container .sk_bd {
width: 1200px;
}
.sk_container .sk_bd ul li img {
width: 100%;
}
.sk_container .sk_bd ul li {
float: left;
margin-left: 8px;
width: 290px;
height: 460px;
border: 1px solid transparent;
}
.sk_container .sk_bd ul li:hover {
border: 1px solid #b1191a;
}
.sk_container .sk_bd ul li :nth-child(4n) {
margin-left: 0px;
}
.sk_container .sk_bd ul li p {
margin: 0px 10px;
font-size: 14px;
color: #666;
}
.sk_container .sk_bd ul li .one {
margin-right: 10px;
margin-left: 8px;
color: #e60012;
font-size: 22px;
}
.sk_container .sk_bd ul li .two {
color: #a4a4a4;
font-size: 14px;
text-decoration: line-through;
}
.sk_container .sk_bd ul li span {
font-size: 14px;
color: #666;
}
.sk_container .sk_bd ul li span p {
display: inline;
margin: 0;
}
.sk_container .sk_bd ul li .bottom {
padding: 0 15px;
margin: 5px;
width: 289px;
height: 30px;
line-height: 30px;
}
.sk_container .sk_bd ul li .footer {
position: relative;
display: inline-block;
border-radius: 5px;
width: 130px;
height: 10px;
border: 1px solid #ed282e;
}
.sk_container .sk_bd ul li .footer_in {
position: absolute;
top: -1px;
left: -1px;
display: inline-block;
border-top-left-radius: 6px;
border-bottom-left-radius: 6px;
width: 120px;
height: 12px;
background-color: #ed282e;
}
.sk_container .sk_bd ul li button {
font-size: 20px;
color: #fff;
width: 290px;
height: 50px;
background-color: #b1191a;
border: 1px solid #b1191a;
}
三,注册页面
①html
<!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>个人注册</title>
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="favicon.ico">
<link rel="stylesheet" href="css/register.css">
</head>
<body>
<div class="w">
<header>
<div class="logo">
<a href="index.html"><img src="images/logo.png" alt=""></a>
</div>
</header>
<div class="registerarea">
<div class="registerarea_top">
<span class="zhuce">注册新用户</span> <span class="zhanghao">我有账号,去<a href="#">登陆</a></span>
</div>
<div class="registerarea_bd">
<ul>
<form action="">
<li><label for="">手机号 :</label><input type="text" class="ipt"><span class="error"><i class="error_icon"></i>手机号码格式不正确,请从新输入</span></li>
<li><label for="">短信验证码 :</label><input type="text" class="ipt">
<li><label for="">登录密码 :</label><input type="password" class="ipt"><span class="error"><i class="error_icon"></i>手机号码格式不正确,请从新输入</span></li>
<li class="safe">
<p>安全程度</p><em class="ruo">弱</em><em class="zhong">中</em><em class="qiang">强</em></li>
<li><label for="">确认密码 :</label><input type="password" class="ipt"><span class="error"><i class="error_icon"></i>手机号码格式不正确,请从新输入</span></li>
<li class="agree"><input type="checkbox" name="" id="" class="chk">
<p>同意协议并注册<a href="#">《知果果用户协议》</a></p>
</li>
<li><input type="submit" value="完成注册" class="btn"></li>
</form>
</ul>
</div>
</div>
<footer>
<div class="mod-copyright">
<div class="links">
<a href="#">关于我们</a> | <a href="#">联系我们</a> | <a href="#">联系客服 </a> | <a href="#">商家入驻</a> | <a href="#">营销中心</a> | <a href="#">手机品优购</a> | <a href="#">友情链接</a> | <a href="#">销售联盟</a> | <a href="#">品优购社区</a> | <a href="#">品优购公益</a> | <a href="#">English Site</a> | <a href="#">Contact U</a>
</div>
<div class="copyright">
地址:北京市昌平区建材城西路金燕龙办公楼一层 邮编:100096 电话:400-618-4000 传真:010-82935100 邮箱: zhanghj+itcast.cn <br> 京ICP备08001421号京公网安备110108007702
</div>
</div>
</footer>
</div>
</body>
</html>
②css
* {
margin: 0;
padding: 0;
}
.w {
width: 1200px;
margin: 0 auto;
}
header {
height: 82px;
border-bottom: 2px solid #c51929;
}
.logo {
padding-top: 17px;
}
.registerarea {
margin-top: 20px;
height: 541px;
border: 1px solid #dfdfdf;
}
.registerarea_top {
height: 42px;
line-height: 42px;
padding: 0 10px;
background-color: #ececec;
border-bottom: 1px solid #dddddd;
}
.registerarea_top .zhuce {
font-size: 18px;
color: #333333;
}
.registerarea_top .zhanghao {
float: right;
font-size: 14px;
color: #333333;
}
.registerarea_top .zhanghao a {
color: #c81623;
}
.registerarea_bd {
width: 600px;
margin: 50px auto 0;
}
.registerarea_bd ul :nth-child(3) {
margin-bottom: 10px;
}
.registerarea_bd ul li {
margin-bottom: 20px;
}
.registerarea_bd ul li label {
display: inline-block;
width: 88px;
font-size: 14px;
text-align: right;
}
.registerarea_bd .ipt {
width: 240px;
height: 36px;
border: 1px solid #999;
margin: 0 10px;
}
.registerarea_bd .error {
color: #df3033;
font-size: 12px;
}
.registerarea_bd .error .error_icon {
display: inline-block;
background: url(../images/error.png) no-repeat;
vertical-align: middle;
margin-top: -4px;
width: 20px;
height: 20px;
}
.registerarea_bd ul .safe {
padding-left: 172px;
}
.registerarea_bd ul .safe p {
display: inline-block;
color: #b2b2b2;
font-size: 12px;
font-weight: 700;
}
.registerarea_bd ul .safe em {
color: #fff;
}
.registerarea_bd ul li .ruo {
padding: 0 12px;
width: 34px;
height: 13px;
background-color: #de1111;
margin-left: 10px;
}
.registerarea_bd ul li .zhong {
padding: 0 12px;
width: 34px;
height: 13px;
background-color: #40b83f;
margin-left: 1px;
}
.registerarea_bd ul li .qiang {
padding: 0 12px;
width: 34px;
height: 13px;
background-color: #f79100;
margin-left: 1px;
}
.agree {
margin-top: 35px;
margin-left: 97px;
}
.agree input {
margin-top: -5px;
vertical-align: middle;
}
.agree p {
display: inline-block;
font-size: 12px;
color: #4d4d4d;
}
.agree p a {
color: #1ba1e6;
}
.registerarea_bd ul .btn {
width: 200px;
height: 35px;
background-color: #c81623;
border: none;
font-size: 14px;
color: #fff;
margin-top: 25px;
margin-left: 97px;
}
.mod-copyright .links {
padding-top: 20px;
padding-left: 116px;
}
.mod-copyright .links a {
margin-left: 9px;
margin-right: 9px;
}
.mod-copyright .links a:first-child {
margin-left: 0;
}
.mod-copyright .links a:last-child {
margin-right: 0;
}
.copyright {
text-align: center;
margin-top: 10px;
}
这是公共的样式common.css
@font-face {
font-family: 'icomoon';
src: url('../fonts/icomoon.eot?94oja2');
src: url('../fonts/icomoon.eot?94oja2#iefix') format('embedded-opentype'), url('../fonts/icomoon.ttf?94oja2') format('truetype'), url('../fonts/icomoon.woff?94oja2') format('woff'), url('../fonts/icomoon.svg?94oja2#icomoon') format('svg');
font-weight: normal;
font-style: normal;
font-display: block;
}
* {
margin: 0;
padding: 0;
}
/* 版心 */
.w {
width: 1200px;
margin: 0 auto;
}
.fl {
float: left;
}
.fr {
float: right;
}
.style-red {
color: #c81623;
}
/* 版心 */
/* 快捷导航模块开始 */
.shortcut {
height: 31px;
line-height: 31px;
background-color: #f1f1f1;
}
.shortcut ul li {
float: left;
}
.shortcut .fr ul li:nth-child(even) {
width: 1px;
height: 12px;
background-color: #666;
margin: 9px 15px 0;
}
.arrow-icon::after {
content: "\ea43";
font-family: 'icomoon';
margin-left: 6px;
/* margin-top: 10px; */
}
/* 快捷导航模块开始 */
/* 头部模块开始 */
.header {
position: relative;
height: 102px;
/* background-color: pink; */
}
.logo {
position: absolute;
top: 27px;
width: 175px;
height: 56px;
/* background-color: skyblue; */
}
.logo h1 a {
display: block;
width: 175px;
height: 56px;
background: url(../images/logo.png) no-repeat;
font-size: 0;
}
/* 搜索模块 */
.search {
position: absolute;
top: 26px;
left: 347px;
width: 538px;
height: 36px;
border: 2px solid #b1191a;
}
.search input {
float: left;
width: 455px;
height: 36px;
}
.search button {
float: left;
width: 83px;
height: 36px;
font-size: 16px;
color: #fff;
background-color: #b1191a;
border: 0;
}
.hotword {
position: absolute;
top: 70px;
left: 347px;
}
.hotword a {
margin: 0 10px;
}
.shopcar {
position: absolute;
top: 25px;
right: 64px;
width: 140px;
height: 37px;
text-align: center;
line-height: 37px;
border: 1px solid #dfdfdf;
background-color: #f7f7f7;
}
.shopcar::before {
content: "\e93a";
font-family: 'icomoon';
color: #b1191a;
margin-right: 10px;
}
.shopcar::after {
content: "\ea42";
font-family: 'icomoon';
margin-left: 10px;
}
.count {
position: absolute;
padding: 5px;
top: -14px;
left: 105px;
height: 14px;
line-height: 14px;
color: #fff;
background-color: #e60012;
border-radius: 7px 7px 7px 0;
}
/* 导航模块开始 */
.nav {
height: 45px;
border-bottom: 2px solid #b1191a;
}
.drowdown {
float: left;
height: 45px;
width: 208px;
background-color: #b1191a;
}
.drowdown .dt {
color: #fff;
font-size: 16px;
text-align: center;
line-height: 45px;
}
.drowdown .dd {
/* float: left; */
margin-top: 2px;
height: 465px;
background-color: #c81623;
}
.drowdown .dd ul li {
position: relative;
padding-left: 13px;
margin-left: 2px;
height: 30px;
line-height: 30px;
}
.drowdown .dd ul li:hover {
background-color: #fff;
}
.drowdown .dd ul li:nth-child(-n+12)::after {
position: absolute;
top: 1px;
right: 10px;
font-family: 'icomoon';
content: "\ea42";
color: #fff;
}
.drowdown .dd ul li a {
font-size: 14px;
color: #fff;
}
/* .drowdown .dd ul li:nth-child(-n+12)::after:hover {
color: #c81623;
} */
.drowdown .dd ul li:hover a {
color: #c81623;
}
.navitems {
float: left;
margin-left: 17px;
height: 45px;
line-height: 45px;
background-color: #fff;
}
.navitems ul li {
float: left;
}
.navitems ul li a {
padding: 0 25px;
font-size: 16px;
color: #333;
}
.navitems ul li a:hover {
color: #b1191a;
}
/* 导航模块结束 */
/* 头部模块结束 */
/* footer模块开始 */
.footer {
height: 418px;
background-color: #f5f5f5;
}
.mod-serive {
height: 110px;
border-bottom: 2px solid #ededed;
}
.mod-serive ul li {
float: left;
margin-left: 35px;
padding: 30px 0 0 0;
width: 205px;
height: 80px;
/* background-color: pink; */
}
.mod-serive ul li h5 {
float: left;
margin-right: 7px;
width: 50px;
height: 50px;
background: url(../images/icons.png) no-repeat -253px -2px;
}
.mod-serive .serve-text {
margin-top: 5px;
}
.mod-serive h4 {
font-size: 14px;
color: #333;
}
.mod-serive p {
font-size: 12px;
color: #666;
}
.mod-serive ul li .two {
float: left;
margin-right: 7px;
width: 50px;
height: 50px;
background: url(../images/icons.png) no-repeat -255px -53px;
}
.mod-serive ul li .three {
float: left;
margin-right: 7px;
width: 50px;
height: 50px;
background: url(../images/icons.png) no-repeat -257px -105px;
}
.mod-serive ul li .four {
float: left;
margin-right: 7px;
width: 50px;
height: 50px;
background: url(../images/icons.png) no-repeat -255px -53px;
}
.mod-serive ul li .five {
float: left;
margin-right: 7px;
width: 50px;
height: 50px;
background: url(../images/icons.png) no-repeat -255px -53px;
}
.mod-serive ul li .two {
float: left;
margin-right: 7px;
width: 50px;
height: 50px;
background: url(../images/icons.png) no-repeat -255px -53px;
}
.mod-help {
padding-top: 20px;
padding-left: 40px;
height: 188px;
border-bottom: 2px solid #ededed;
}
.mod-help dl {
float: left;
width: 198px;
}
.mod-help dl:last-child {
width: 120px;
text-align: center;
}
.mod-help dl dt {
margin-bottom: 15px;
font-size: 16px;
color: #333;
}
.mod-help dl dd {
font-size: 12px;
color: #666;
}
.mod-copyright .links {
padding-top: 20px;
padding-left: 116px;
}
.mod-copyright .links a {
margin-left: 9px;
margin-right: 9px;
}
.mod-copyright .links a:first-child {
margin-left: 0;
}
.mod-copyright .links a:last-child {
margin-right: 0;
}
.copyright {
text-align: center;
margin-top: 10px;
}