一、首页
1、页面开头
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>品优购商城 - 综合网购首选-正品低价、品质保障、配送及时、轻松购物!</title>
<meta name="description" content="品优购商城-专业的综合网上购物商城,销售家电、数码通讯、电脑、家居百货、服装服饰、母
婴、图书、食品等数万个品牌优质商品.便捷、诚信的服务,为您提供愉悦的网上购物体验!" />
<meta name="keywords" content="网上购物,网上商城,手机,笔记本,电脑,MP3,CD,VCD,DV,相机,数码,配件,手表,存储卡,京东" />
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/common.css">
<link rel="stylesheet" href="css/index.css">
</head>
<body>
</body>
</html>
2、快捷导航
2.1 页面框架
<div class="shortcut">
<div class="w">
<div class="fl">
<ul>
<li>品优购欢迎您! </li>
<li>
<a href="#">请登录 </a>
<a href="register.html" class="style_red">免费注册</a>
</li>
</ul>
</div>
<div class="fr">
<ul>
<li>我的订单</li>
<li></li>
<li class="arrow-icon">我的品优购</li>
<li></li>
<li>品优购会员</li>
<li></li>
<li>企业采购</li>
<li></li>
<li class="arrow-icon">关注品优购</li>
<li></li>
<li class="arrow-icon">客户服务</li>
<li></li>
<li class="arrow-icon">网站导航</li>
</ul>
</div>
</div>
</div>
![快捷导航](https://i-blog.csdnimg.cn/direct/6ce369370f2a42f3b7dc8df27f648c94.png)
2.2 格式文件
.w {
width: 1200px;
margin: 0 auto;
}
.fl {
float: left;
}
.fr {
float: right;
}
.style_red {
color: #c81623;
}
.shortcut {
height: 30px;
line-height: 30px;
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;
}
.arrow-icon::after {
content: '\e91e';
font-family: 'icomoon';
margin-left: 5px;
}
3、头部模块
3.1 页面框架
<header class="header w">
<div class="logo">
<h1>
<a href="index.html" title="品优购商城">品优购商城</a>
</h1>
</div>
<div class="search">
<input type="search" placeholder="语言开发">
<button>搜索</button>
</div>
<div class="hotwords">
<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>
![头部模块](https://i-blog.csdnimg.cn/direct/2c1e8efa47b9487ba75e8619d7b51d3c.png)
3.2 格式文件
.header {
position: relative;
height: 105px;
}
.logo {
position: absolute;
top: 25px;
width: 170px;
height: 60px;
}
.logo a {
display: block;
width: 170px;
height: 60px;
background: url(../images/logo.png);
font-size: 0;
}
.search {
position: absolute;
left: 345px;
top: 25px;
width: 534px;
height: 36px;
border: 2px solid #b1191a;
}
.search input {
float: left;
width: 450px;
height: 32px;
padding-left: 10px;
}
.search button {
float: right;
width: 80px;
height: 34px;
background-color: #b1191a;
font-size: 16px;
color: #fff;
}
.hotwords {
position: absolute;
left: 345px;
top: 70px;
}
.hotwords a {
margin: 0 10px;
}
.shopcar {
position: absolute;
top: 25px;
right: 60px;
width: 140px;
height: 35px;
border: 1px solid #dfdfdf;
background-color: #f7f7f7;
line-height: 35px;
text-align: center;
}
.shopcar::before {
content: '\e93a';
font-family: 'icomoon';
margin-right: 5px;
color: #b1191a;
}
.shopcar::after {
content: '\e920';
font-family: 'icomoon';
margin-left: 10px;
}
.count {
position: absolute;
top: -5px;
left: 90px;
height: 14px;
line-height: 14px;
color: #fff;
background-color: #e60012;
padding: 0 5px;
border-radius: 7px 7px 7px 0;
}
4、导航栏
4.1 页面框架
<div class="nav">
<div class="w">
<div class="dropdown fl">
<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 fl">
<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>
![导航栏](https://i-blog.csdnimg.cn/direct/07f0cc3448274e8cba99e2f08de2d10f.png)
4.2 格式文件
.nav {
height: 48px;
border-bottom: 2px solid #b1191a;
}
.nav .dropdown {
width: 210px;
height: 47px;
background: #b1191a;
}
.nav .dropdown .dt {
width: 100%;
height: 100%;
color: #fff;
text-align: center;
line-height: 48px;
font-size: 16px;
}
.nav .dropdown .dd {
width: 210px;
height: 465px;
background-color: #c81623;
margin-top: 1px;
}
.nav .dropdown .dd ul li {
position: relative;
height: 31px;
line-height: 31px;
margin-left: 2px;
padding-left: 10px;
}
.nav .dropdown .dd ul li:hover {
background-color: #fff;
}
.nav .dropdown .dd ul li::after {
position: absolute;
top: 1px;
right: 10px;
content: '\e920';
color: #fff;
font-size: 14px;
font-family: 'icomoon';
}
.nav .dropdown .dd ul li a {
font-size: 14px;
color: #fff;
}
.nav .dropdown .dd ul li:hover a {
color: #c81623;
}
.navitems ul li {
float: left;
}
.navitems ul li a {
display: block;
height: 46px;
line-height: 45px;
font-size: 16px;
padding: 0 25px;
}
5、页面主模块
5.1 页面框架
<div class="w">
<div class="main">
<div class="focus fl">
<ul>
<li><img src="upload/focus.png"></li>
</ul>
</div>
<div class="newsflash fr">
<div class="news">
<div class="new-hd">
<h5 class="fl">品优购快报</h5>
<a href="#" class="more fr">更多</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 class="lifeservice01"></i>
<p>话费</p>
</li>
<li><i class="lifeservice02"></i>
<p>机票</p>
</li>
<li><i class="lifeservice03"></i>
<p>电影票</p>
</li>
<li><i class="lifeservice04"></i>
<p>游戏</p>
</li>
<li><i class="lifeservice05"></i>
<p>彩票</p>
</li>
<li><i class="lifeservice06"></i>
<p>加油卡</p>
</li>
<li><i class="lifeservice07"></i>
<p>酒店</p>
</li>
<li><i class="lifeservice08"></i>
<p>火车票</p>
</li>
<li><i class="lifeservice09"></i>
<p>众筹</p>
</li>
<li><i class="lifeservice10"></i>
<p>理财</p>
</li>
<li><i class="lifeservice11"></i>
<p>礼品卡</p>
</li>
<li><i class="lifeservice12"></i>
<p>白条</p>
</li>
</ul>
</div>
<div class="bargain">
<img src="upload/bargain.png">
</div>
</div>
</div>
</div>
![页面主模板](https://i-blog.csdnimg.cn/direct/fd4d45c4a98d41428e4698346b4ca086.png)
5.2 格式文件
.main {
width: 980px;
height: 455px;
margin-left: 220px;
margin-top: 10px;
}
.focus {
width: 720px;
height: 455px;
}
.newsflash {
width: 250px;
height: 455px;
}
.news {
height: 165px;
border: 1px solid #e4e4e4;
}
.new-hd {
height: 35px;
line-height: 35px;
border-bottom: 1px dotted #e4e4e4;
}
.new-hd h5 {
margin-left: 20px;
font-size: 14px;
}
.new-hd .more {
margin-right: 15px;
}
.new-hd .more::after {
margin-left: 5px;
content: '\e920';
font-family: 'icomoon';
}
.new-bd {
padding: 5px 15px 0;
}
.new-bd ul li {
height: 24px;
line-height: 24px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.lifeservice {
height: 210px;
border-left: 1px solid #e4e4e4;
}
.lifeservice ul {
width: 252px;
}
.lifeservice ul li {
float: left;
width: 62px;
height: 70px;
border-right: 1px solid #e4e4e4;
border-bottom: 1px solid #e4e4e4;
text-align: center;
}
.lifeservice ul li:nth-child(4n) {
width: 63px;
}
.lifeservice ul li i {
display: inline-block;
width: 30px;
height: 30px;
margin-top: 12px;
}
.lifeservice01 {
background: url(../images/icons.png) no-repeat -13px -11px;
}
.lifeservice02 {
background: url(../images/icons.png) no-repeat -75px -11px;
}
.lifeservice03 {
background: url(../images/icons.png) no-repeat -139px -11px;
}
.lifeservice04 {
background: url(../images/icons.png) no-repeat -203px -11px;
}
.lifeservice05 {
background: url(../images/icons.png) no-repeat -13px -81px;
}
.lifeservice06 {
background: url(../images/icons.png) no-repeat -75px -81px;
}
.lifeservice07 {
background: url(../images/icons.png) no-repeat -139px -81px;
}
.lifeservice08 {
background: url(../images/icons.png) no-repeat -203px -81px;
}
.lifeservice09 {
background: url(../images/icons.png) no-repeat -13px -152px;
}
.lifeservice10 {
background: url(../images/icons.png) no-repeat -75px -152px;
}
.lifeservice11 {
background: url(../images/icons.png) no-repeat -139px -152px;
}
.lifeservice12 {
background: url(../images/icons.png) no-repeat -203px -152px;
}
.bargain {
margin-top: 5px;
}
6、推荐模块
6.1 页面框架
<div class="w recom">
<div class="recom-hd fl">
<img src="images/recom.png">
</div>
<div class="recom-bd fl">
<ul>
<li><img src="upload/recom.jpg"></li>
<li><img src="upload/recom.jpg"></li>
<li><img src="upload/recom.jpg"></li>
<li><img src="upload/recom.jpg"></li>
</ul>
</div>
</div>
![推荐模块](https://i-blog.csdnimg.cn/direct/9c8730f16f0b429bb2c936e13a773f9b.png)
6.2 格式文件
.recom {
height: 165px;
margin-top: 10px;
}
.recom-hd {
height: 165px;
width: 208px;
background-color: #5c5251;
text-align: center;
padding-top: 35px;
}
.recom-bd ul li {
position: relative;
float: left;
}
.recom-bd ul li img {
width: 248px;
height: 165px;
}
.recom-bd ul li:nth-child(-n+3):after {
content: '';
position: absolute;
top: 10px;
right: 0;
width: 1px;
height: 145px;
background-color: #ddd;
}
7、楼层模块
7.1 页面框架
<div class="floor">
<div class="w jiadian">
<div class="box-hd">
<h3>家用电器</h3>
<div class="tab-list fr">
<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="#">4K电视</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="upload/floor-1-1-1.png">
</a>
</div>
<div class="col-330">
<a href="#"><img src="upload/floor-1-2-1.png" alt=""></a>
</div>
<div class="col-220">
<a href="#"><img src="upload/floor-1-3-1.png"></a>
<a href="#"><img src="upload/floor-1-3-2.png"></a>
</div>
<div class="col-220">
<a href="#"><img src="upload/floor-1-4-1.png"></a>
</div>
<div class="col-220">
<a href="#"><img src="upload/floor-1-5-1.png"></a>
<a href="#"><img src="upload/floor-1-5-2.png"></a>
</div>
</div>
</div>
</div>
</div>
<div class="w jiadian">
<div class="box-hd">
<h3>手机通讯</h3>
<div class="tab-list fr">
<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="#">4K电视</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="upload/floor-1-1-1.png">
</a>
</div>
<div class="col-330">
<a href="#"><img src="upload/floor-1-2-1.png" alt=""></a>
</div>
<div class="col-220">
<a href="#"><img src="upload/floor-1-3-1.png"></a>
<a href="#"><img src="upload/floor-1-3-2.png"></a>
</div>
<div class="col-220">
<a href="#"><img src="upload/floor-1-4-1.png"></a>
</div>
<div class="col-220">
<a href="#"><img src="upload/floor-1-5-1.png"></a>
<a href="#"><img src="upload/floor-1-5-2.png"></a>
</div>
</div>
</div>
</div>
</div>
<div class="w jiadian">
<div class="box-hd">
<h3>机械器材</h3>
<div class="tab-list fr">
<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="#">4K电视</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="upload/floor-1-1-1.png">
</a>
</div>
<div class="col-330">
<a href="#"><img src="upload/floor-1-2-1.png" alt=""></a>
</div>
<div class="col-220">
<a href="#"><img src="upload/floor-1-3-1.png"></a>
<a href="#"><img src="upload/floor-1-3-2.png"></a>
</div>
<div class="col-220">
<a href="#"><img src="upload/floor-1-4-1.png"></a>
</div>
<div class="col-220">
<a href="#"><img src="upload/floor-1-5-1.png"></a>
<a href="#"><img src="upload/floor-1-5-2.png"></a>
</div>
</div>
</div>
</div>
</div>
</div>
![楼层模块](https://i-blog.csdnimg.cn/direct/d7e200b246cc4528b7072e02fb85f688.png)
7.2 格式文件
.floor .w {
margin-top: 30px;
}
.box-hd {
height: 30px;
border-bottom: 2px solid#c81623;
}
.jiadian .box-hd h3 {
float: left;
font-size: 18px;
color: #c81623;
font-weight: 400;
}
.jiadian .tab-list {
line-height: 30px;
}
.jiadian .tab-list ul li {
float: left;
}
.jiadian .tab-list ul li a {
margin: 0 15px;
}
.jiadian .box-bd {
height: 360px;
}
.jiadian .box-bd .tab-list-item div {
float: left;
}
.col-210 {
width: 210px;
height: 360px;
background-color: #f9f9f9;
text-align: center;
}
.col-210 ul {
padding-left: 12px;
}
.col-210 ul li {
float: left;
width: 85px;
height: 34px;
border-bottom: 1px solid #ccc;
text-align: center;
line-height: 33px;
margin-right: 10px;
}
.col-330 {
width: 330px;
height: 360px;
}
.col-220 {
width: 220px;
height: 360px;
}
8、页面底部
8.1 页面框架
<footer class="footer">
<div class="w">
<div class="mod_service">
<ul>
<li>
<h5 class="service1"></h5>
<div class="service_item">
<h4>正品保障</h4>
<p>正品保障,提供发货</p>
</div>
</li>
<li>
<h5 class="service2"></h5>
<div class="service_item">
<h4>极速物流</h4>
<p>极速物流,极速送达</p>
</div>
</li>
<li>
<h5 class="service3"></h5>
<div class="service_item">
<h4>无忧售后</h4>
<p>7天无理由退货</p>
</div>
</li>
<li>
<h5 class="service4"></h5>
<div class="service_item">
<h4>特色服务</h4>
<p>私人定制家电套餐</p>
</div>
</li>
</ul>
</div>
<div class="mod_help">
<dl>
<dt>购物指南</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>配送方式</dt>
<dd><a href="#">上门自提</a></dd>
<dd><a href="#">211限时达</a></dd>
<dd><a href="#">配送服务查询</a></dd>
<dd><a href="#">配送费收取标准</a></dd>
<dd><a href="#">海外配送</a></dd>
</dl>
<dl>
<dt>支付方式</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>
</dl>
<dl>
<dt>售后服务</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>
</dl>
<dl>
<dt>特色服务</dt>
<dd><a href="#">夺宝岛</a></dd>
<dd><a href="#">DIY装机</a></dd>
<dd><a href="#">延保服务</a></dd>
<dd><a href="#">品优购E卡</a></dd>
<dd><a href="#">品优购通信</a></dd>
</dl>
<dl>
<dt>帮助中心</dt>
<dd>
<img src="images/wx.jpg" alt="">
品优购客户端
</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>
</div>
<div class="copyright">
地址: 江西省九江市浔阳区浔阳东路169号
邮编: 332000 电话:400-618-4000
传真: 010-82935100
邮箱: 2636903367@qq.com<br>
京ICP备08001421号 京公网安备110108007702
</div>
</div>
</div>
</footer>
![页面底部](https://i-blog.csdnimg.cn/direct/24521a1415ff462998db97abfff8aeeb.png)
8.2 格式文件
.footer {
height: 415px;
background-color: #f5f5f5;
padding-top: 30px;
}
.mod_service {
height: 80px;
border-bottom: 1px solid #ccc;
}
.mod_service ul li {
float: left;
height: 50px;
width: 300px;
padding-left: 35px;
}
.mod_service ul li h5 {
float: left;
width: 50px;
height: 50px;
margin-right: 10px;
}
.service1 {
background: url(../images/icons.png) no-repeat -252px -2px;
}
.service2 {
background: url(../images/icons.png) no-repeat -255px -54px;
}
.service3 {
background: url(../images/icons.png) no-repeat -257px -105px;
}
.service4 {
background: url(../images/icons.png) no-repeat -257px -157px;
}
.service_item h4 {
font-size: 14px;
}
.service_item p {
font-size: 12px;
}
.mod_help {
height: 185px;
border-bottom: 1px solid #ccc;
padding-top: 20px;
padding-left: 50px;
}
.mod_help dl {
float: left;
width: 200px;
}
.mod_help dl:last-child {
width: 90px;
text-align: center;
}
.mod_help dl dt {
font-size: 16px;
margin-bottom: 10px;
}
.mod_copyright {
text-align: center;
padding-top: 20px;
}
.links {
margin-bottom: 15px;
}
.links a {
margin: 0 3px;
}
.copyright {
line-height: 20px;
}
二、列表页
1、页面开头
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>列表页 - 综合网购首选-正品低价、品质保障、配送及时、轻松购物!</title>
<meta name="description" content="品优购商城-专业的综合网上购物商城,销售家电、数码通讯、电脑、家居百货、服装服饰、母
婴、图书、食品等数万个品牌优质商品.便捷、诚信的服务,为您提供愉悦的网上购物体验!" />
<meta name="keywords" content="网上购物,网上商城,手机,笔记本,电脑,MP3,CD,VCD,DV,相机,数码,配件,手表,存储卡,京东" />
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/common.css">
<link rel="stylesheet" href="css/list.css">
</head>
<body>
</body>
</html>
2、主页共用头部模块
2.1 页面框架
<div class="shortcut">
<div class="w">
<div class="fl">
<ul>
<li>品优购欢迎您! </li>
<li>
<a href="#">请登录 </a>
<a href="#" class="style_red">免费注册</a>
</li>
</ul>
</div>
<div class="fr">
<ul>
<li>我的订单</li>
<li></li>
<li class="arrow-icon">我的品优购</li>
<li></li>
<li>品优购会员</li>
<li></li>
<li>企业采购</li>
<li></li>
<li class="arrow-icon">关注品优购</li>
<li></li>
<li class="arrow-icon">客户服务</li>
<li></li>
<li class="arrow-icon">网站导航</li>
</ul>
</div>
</div>
</div>
<header class="header w">
<div class="logo">
<h1>
<a href="index.html" title="品优购商城">品优购商城</a>
</h1>
</div>
<div class="sk">
<img src="images/sk.png">
</div>
<div class="search">
<input type="search" placeholder="语言开发">
<button>搜索</button>
</div>
<div class="hotwords">
<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>
![主页头部共用](https://i-blog.csdnimg.cn/direct/104e80fea78841c1a79da3a6c6bad2ef.png)
2.2 格式文件
.w {
width: 1200px;
margin: 0 auto;
}
.fl {
float: left;
}
.fr {
float: right;
}
.style_red {
color: #c81623;
}
.shortcut {
height: 30px;
line-height: 30px;
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;
}
.arrow-icon::after {
content: '\e91e';
font-family: 'icomoon';
margin-left: 5px;
}
.header {
position: relative;
height: 105px;
}
.logo {
position: absolute;
top: 25px;
width: 170px;
height: 60px;
}
.logo a {
display: block;
width: 170px;
height: 60px;
background: url(../images/logo.png);
font-size: 0;
}
.search {
position: absolute;
left: 345px;
top: 25px;
width: 534px;
height: 36px;
border: 2px solid #b1191a;
}
.search input {
float: left;
width: 450px;
height: 32px;
padding-left: 10px;
}
.search button {
float: right;
width: 80px;
height: 34px;
background-color: #b1191a;
font-size: 16px;
color: #fff;
}
.hotwords {
position: absolute;
left: 345px;
top: 70px;
}
.hotwords a {
margin: 0 10px;
}
.shopcar {
position: absolute;
top: 25px;
right: 60px;
width: 140px;
height: 35px;
border: 1px solid #dfdfdf;
background-color: #f7f7f7;
line-height: 35px;
text-align: center;
}
.shopcar::before {
content: '\e93a';
font-family: 'icomoon';
margin-right: 5px;
color: #b1191a;
}
.shopcar::after {
content: '\e920';
font-family: 'icomoon';
margin-left: 10px;
}
.count {
position: absolute;
top: -5px;
left: 90px;
height: 14px;
line-height: 14px;
color: #fff;
background-color: #e60012;
padding: 0 5px;
border-radius: 7px 7px 7px 0;
}
3、副导航
3.1 页面框架
<div class="nav">
<div class="w">
<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="#" 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>
</ul>
</div>
</div>
</div>
![副导航](https://i-blog.csdnimg.cn/direct/6ae0efb287c44fb2b9b949df64f4e74f.png)
3.2 格式文件
.nav {
overflow: hidden;
}
.sk {
position: absolute;
top: 40px;
left: 190px;
border-left: 1px solid #c81523;
padding: 3px 0 0 15px;
}
.sk-list {
float: left;
}
.sk-list ul li {
float: left;
}
.sk-list ul li a {
display: block;
line-height: 50px;
padding: 0 30px;
font-size: 16px;
font-weight: 700;
color: #000;
}
.sk-con {
float: left;
}
.sk-con ul li {
float: left;
}
.sk-con ul li a {
display: block;
line-height: 50px;
padding: 0 20px;
font-size: 14px;
}
.sk-con ul li:last-child a::after {
content: '\e91e';
font-family: 'icomoon';
}
4、列表详情页
4.1 页面框架
<div class="w sk-container">
<div class="sk-hd">
<img src="upload/bg.png">
</div>
<div class="sk-bd">
<ul class="clearfix">
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
</ul>
</div>
</div>
![列表详情页](https://i-blog.csdnimg.cn/direct/dad656a048574c05bf7109343644b2e1.png)
4.2 格式文件
.sk-bd ul li {
overflow: hidden;
float: left;
margin-right: 13px;
width: 290px;
height: 460px;
border: 1px solid tranparent;
}
.sk-bd ul li:nth-child(4n) {
margin-right: 0px;
}
.sk-bd ul li:hover {
border: 1px solid #c81523;
}
5、主页共用尾部模块
5.1 页面框架
<footer class="footer">
<div class="w">
<div class="mod_service">
<ul>
<li>
<h5 class="service1"></h5>
<div class="service_item">
<h4>正品保障</h4>
<p>正品保障,提供发货</p>
</div>
</li>
<li>
<h5 class="service2"></h5>
<div class="service_item">
<h4>极速物流</h4>
<p>极速物流,极速送达</p>
</div>
</li>
<li>
<h5 class="service3"></h5>
<div class="service_item">
<h4>无忧售后</h4>
<p>7天无理由退货</p>
</div>
</li>
<li>
<h5 class="service4"></h5>
<div class="service_item">
<h4>特色服务</h4>
<p>私人定制家电套餐</p>
</div>
</li>
</ul>
</div>
<div class="mod_help">
<dl>
<dt>购物指南</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>配送方式</dt>
<dd><a href="#">上门自提</a></dd>
<dd><a href="#">211限时达</a></dd>
<dd><a href="#">配送服务查询</a></dd>
<dd><a href="#">配送费收取标准</a></dd>
<dd><a href="#">海外配送</a></dd>
</dl>
<dl>
<dt>支付方式</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>
</dl>
<dl>
<dt>售后服务</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>
</dl>
<dl>
<dt>特色服务</dt>
<dd><a href="#">夺宝岛</a></dd>
<dd><a href="#">DIY装机</a></dd>
<dd><a href="#">延保服务</a></dd>
<dd><a href="#">品优购E卡</a></dd>
<dd><a href="#">品优购通信</a></dd>
</dl>
<dl>
<dt>帮助中心</dt>
<dd>
<img src="images/wx.jpg" alt="">
品优购客户端
</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>
</div>
<div class="copyright">
地址: 江西省九江市浔阳区浔阳东路169号
邮编: 332000 电话:400-618-4000
传真: 010-82935100
邮箱: 2636903367@qq.com<br>
京ICP备08001421号 京公网安备110108007702
</div>
</div>
</div>
</footer>
![共用主页尾部](https://i-blog.csdnimg.cn/direct/bbbeff549d3b4b36892bef191e1e15f3.png)
5.2 格式文件
.footer {
height: 415px;
background-color: #f5f5f5;
padding-top: 30px;
}
.mod_service {
height: 80px;
border-bottom: 1px solid #ccc;
}
.mod_service ul li {
float: left;
height: 50px;
width: 300px;
padding-left: 35px;
}
.mod_service ul li h5 {
float: left;
width: 50px;
height: 50px;
margin-right: 10px;
}
.service1 {
background: url(../images/icons.png) no-repeat -252px -2px;
}
.service2 {
background: url(../images/icons.png) no-repeat -255px -54px;
}
.service3 {
background: url(../images/icons.png) no-repeat -257px -105px;
}
.service4 {
background: url(../images/icons.png) no-repeat -257px -157px;
}
.service_item h4 {
font-size: 14px;
}
.service_item p {
font-size: 12px;
}
.mod_help {
height: 185px;
border-bottom: 1px solid #ccc;
padding-top: 20px;
padding-left: 50px;
}
.mod_help dl {
float: left;
width: 200px;
}
.mod_help dl:last-child {
width: 90px;
text-align: center;
}
.mod_help dl dt {
font-size: 16px;
margin-bottom: 10px;
}
.mod_copyright {
text-align: center;
padding-top: 20px;
}
.links {
margin-bottom: 15px;
}
.links a {
margin: 0 3px;
}
.copyright {
line-height: 20px;
}
三、注册页
1、页面开头
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>个人注册</title>
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/register.css">
</head>
<body>
</body>
</html>
2、头部区域
2.1 页面框架
<header>
<div class="logo">
<a href="index.html"><img src="images/logo.png"></a>
</div>
</header>
![头部区域](https://i-blog.csdnimg.cn/direct/5601f7c491d64270be4ecd5c51bcfc3f.png)
2.2 格式文件
.w {
width: 1200px;
margin: 0 auto;
}
header {
height: 85px;
border-bottom: 2px solid #c81523;
}
.logo {
padding-top: 18px;
}
3、主体区域
3.1 页面框架
<div class="registerarea">
<h3>
注册新用户
<div class="login">
我有账号,去<a href="#">登陆</a>
</div>
</h3>
<div class="reg-form">
<form action="">
<ul>
<li>
<label for="">手机号: </label>
<input type="text" class="inp">
<span class="error">
<i class="error-icon"></i>
手机号码格式不正确,请重新输入
</span>
</li>
<li>
<label for="">短信验证码: </label>
<input type="text" class="inp">
<span class="success">
<i class="success-icon"></i>
短信验证码正确
</span>
</li>
<li>
<label for="">登录密码: </label>
<input type="password" class="inp">
<span class="error">
<i class="error-icon"></i>
密码不少于6位数,请重新输入
</span>
</li>
<li class="safe">
安全程度
<em class="ruo">弱</em>
<em class="zhong">中</em>
<em class="qiang">强</em>
</li>
<li>
<label for="">确认密码: </label>
<input type="passwor" class="inp">
<span class="error">
<i class="error-icon"></i>
密码不一致,请重新输入
</span>
</li>
<li class="agree">
<input type="checkbox">同意协议并注册
<a href="#">《知晓用户协议》</a>
</li>
<li>
<input type="submit" value="完成注册" class="btn">
</li>
</ul>
</form>
</div>
</div>
![主体区域](https://i-blog.csdnimg.cn/direct/f27090df33404e8aace9fddd64559d5b.png)
3.2 格式文件
.registerarea {
margin-top: 20px;
height: 530px;
border: 1px solid #ccc;
}
.registerarea h3 {
height: 50px;
border-bottom: 1px solid #ccc;
background-color: #ececec;
line-height: 50px;
padding: 0 10px;
font-size: 18px;
font-weight: 400;
}
.login {
float: right;
font-size: 14px;
}
.login a {
color: #c81523;
}
.reg-form {
width: 600px;
margin: 50px auto 0;
}
.reg-form ul li {
margin-bottom: 20px;
}
.reg-form ul li label {
display: inline-block;
width: 90px;
text-align: right;
}
.reg-form ul li .inp {
width: 240px;
height: 38px;
border: 1px solid #ccc;
}
.error {
color: red;
}
.error-icon,
.success-icon {
display: inline-block;
vertical-align: middle;
width: 20px;
height: 20px;
background: url(../images/error.png) no-repeat;
margin-top: -5px;
}
.success {
color: green;
}
.success-icon {
background: url(../images/success.png) no-repeat;
}
.safe {
padding-left: 166px;
}
.safe em {
padding: 0 12px;
color: #fff;
}
.ruo {
background-color: #de1111;
}
.zhong {
background-color: #40b83f;
}
.qiang {
background-color: #f79100;
}
.agree {
margin-left: 115px;
}
.agree input {
vertical-align: middle;
}
.agree a {
color: #1ab1e6;
}
.btn {
margin: 20px 0 0 110px;
width: 200px;
height: 35px;
background-color: #c81623;
font-size: 14px;
color: #fff;
}
4、尾部区域
4.1 页面框架
<footer class="footer">
<div class="w">
<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>
</div>
<div class="copyright">
地址: 江西省九江市浔阳区浔阳东路169号
邮编: 332000 电话:400-618-4000
传真: 010-82935100
邮箱: 2636903367@qq.com<br>
京ICP备08001421号 京公网安备110108007702
</div>
</div>
</div>
</footer>
![尾部区域](https://i-blog.csdnimg.cn/direct/9712176218f3472b8e81b9889836ac36.png)
4.2 格式文件
.mod_help {
height: 185px;
border-bottom: 1px solid #ccc;
padding-top: 20px;
padding-left: 50px;
}
.mod_help dl {
float: left;
width: 200px;
}
.mod_help dl:last-child {
width: 90px;
text-align: center;
}
.mod_help dl dt {
font-size: 16px;
margin-bottom: 10px;
}
.mod_copyright {
text-align: center;
padding-top: 20px;
}
.links {
margin-bottom: 15px;
}
.links a {
margin: 0 3px;
}
.copyright {
line-height: 20px;
}
四、完整代码
1、主页框架文件
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>品优购商城 - 综合网购首选-正品低价、品质保障、配送及时、轻松购物!</title>
<meta name="description" content="品优购商城-专业的综合网上购物商城,销售家电、数码通讯、电脑、家居百货、服装服饰、母
婴、图书、食品等数万个品牌优质商品.便捷、诚信的服务,为您提供愉悦的网上购物体验!" />
<meta name="keywords" content="网上购物,网上商城,手机,笔记本,电脑,MP3,CD,VCD,DV,相机,数码,配件,手表,存储卡,京东" />
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/common.css">
<link rel="stylesheet" href="css/index.css">
</head>
<body>
<div class="shortcut">
<div class="w">
<div class="fl">
<ul>
<li>品优购欢迎您! </li>
<li>
<a href="#">请登录 </a>
<a href="register.html" class="style_red">免费注册</a>
</li>
</ul>
</div>
<div class="fr">
<ul>
<li>我的订单</li>
<li></li>
<li class="arrow-icon">我的品优购</li>
<li></li>
<li>品优购会员</li>
<li></li>
<li>企业采购</li>
<li></li>
<li class="arrow-icon">关注品优购</li>
<li></li>
<li class="arrow-icon">客户服务</li>
<li></li>
<li class="arrow-icon">网站导航</li>
</ul>
</div>
</div>
</div>
<header class="header w">
<div class="logo">
<h1>
<a href="index.html" title="品优购商城">品优购商城</a>
</h1>
</div>
<div class="search">
<input type="search" placeholder="语言开发">
<button>搜索</button>
</div>
<div class="hotwords">
<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="dropdown fl">
<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 fl">
<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>
<div class="w">
<div class="main">
<div class="focus fl">
<ul>
<li><img src="upload/focus.png"></li>
</ul>
</div>
<div class="newsflash fr">
<div class="news">
<div class="new-hd">
<h5 class="fl">品优购快报</h5>
<a href="#" class="more fr">更多</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 class="lifeservice01"></i>
<p>话费</p>
</li>
<li><i class="lifeservice02"></i>
<p>机票</p>
</li>
<li><i class="lifeservice03"></i>
<p>电影票</p>
</li>
<li><i class="lifeservice04"></i>
<p>游戏</p>
</li>
<li><i class="lifeservice05"></i>
<p>彩票</p>
</li>
<li><i class="lifeservice06"></i>
<p>加油卡</p>
</li>
<li><i class="lifeservice07"></i>
<p>酒店</p>
</li>
<li><i class="lifeservice08"></i>
<p>火车票</p>
</li>
<li><i class="lifeservice09"></i>
<p>众筹</p>
</li>
<li><i class="lifeservice10"></i>
<p>理财</p>
</li>
<li><i class="lifeservice11"></i>
<p>礼品卡</p>
</li>
<li><i class="lifeservice12"></i>
<p>白条</p>
</li>
</ul>
</div>
<div class="bargain">
<img src="upload/bargain.png">
</div>
</div>
</div>
</div>
<div class="w recom">
<div class="recom-hd fl">
<img src="images/recom.png">
</div>
<div class="recom-bd fl">
<ul>
<li><img src="upload/recom.jpg"></li>
<li><img src="upload/recom.jpg"></li>
<li><img src="upload/recom.jpg"></li>
<li><img src="upload/recom.jpg"></li>
</ul>
</div>
</div>
<div class="floor">
<div class="w jiadian">
<div class="box-hd">
<h3>家用电器</h3>
<div class="tab-list fr">
<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="#">4K电视</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="upload/floor-1-1-1.png">
</a>
</div>
<div class="col-330">
<a href="#"><img src="upload/floor-1-2-1.png" alt=""></a>
</div>
<div class="col-220">
<a href="#"><img src="upload/floor-1-3-1.png"></a>
<a href="#"><img src="upload/floor-1-3-2.png"></a>
</div>
<div class="col-220">
<a href="#"><img src="upload/floor-1-4-1.png"></a>
</div>
<div class="col-220">
<a href="#"><img src="upload/floor-1-5-1.png"></a>
<a href="#"><img src="upload/floor-1-5-2.png"></a>
</div>
</div>
</div>
</div>
</div>
<div class="w jiadian">
<div class="box-hd">
<h3>手机通讯</h3>
<div class="tab-list fr">
<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="#">4K电视</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="upload/floor-1-1-1.png">
</a>
</div>
<div class="col-330">
<a href="#"><img src="upload/floor-1-2-1.png" alt=""></a>
</div>
<div class="col-220">
<a href="#"><img src="upload/floor-1-3-1.png"></a>
<a href="#"><img src="upload/floor-1-3-2.png"></a>
</div>
<div class="col-220">
<a href="#"><img src="upload/floor-1-4-1.png"></a>
</div>
<div class="col-220">
<a href="#"><img src="upload/floor-1-5-1.png"></a>
<a href="#"><img src="upload/floor-1-5-2.png"></a>
</div>
</div>
</div>
</div>
</div>
<div class="w jiadian">
<div class="box-hd">
<h3>机械器材</h3>
<div class="tab-list fr">
<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="#">4K电视</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="upload/floor-1-1-1.png">
</a>
</div>
<div class="col-330">
<a href="#"><img src="upload/floor-1-2-1.png" alt=""></a>
</div>
<div class="col-220">
<a href="#"><img src="upload/floor-1-3-1.png"></a>
<a href="#"><img src="upload/floor-1-3-2.png"></a>
</div>
<div class="col-220">
<a href="#"><img src="upload/floor-1-4-1.png"></a>
</div>
<div class="col-220">
<a href="#"><img src="upload/floor-1-5-1.png"></a>
<a href="#"><img src="upload/floor-1-5-2.png"></a>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="w">
<div class="mod_service">
<ul>
<li>
<h5 class="service1"></h5>
<div class="service_item">
<h4>正品保障</h4>
<p>正品保障,提供发货</p>
</div>
</li>
<li>
<h5 class="service2"></h5>
<div class="service_item">
<h4>极速物流</h4>
<p>极速物流,极速送达</p>
</div>
</li>
<li>
<h5 class="service3"></h5>
<div class="service_item">
<h4>无忧售后</h4>
<p>7天无理由退货</p>
</div>
</li>
<li>
<h5 class="service4"></h5>
<div class="service_item">
<h4>特色服务</h4>
<p>私人定制家电套餐</p>
</div>
</li>
</ul>
</div>
<div class="mod_help">
<dl>
<dt>购物指南</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>配送方式</dt>
<dd><a href="#">上门自提</a></dd>
<dd><a href="#">211限时达</a></dd>
<dd><a href="#">配送服务查询</a></dd>
<dd><a href="#">配送费收取标准</a></dd>
<dd><a href="#">海外配送</a></dd>
</dl>
<dl>
<dt>支付方式</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>
</dl>
<dl>
<dt>售后服务</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>
</dl>
<dl>
<dt>特色服务</dt>
<dd><a href="#">夺宝岛</a></dd>
<dd><a href="#">DIY装机</a></dd>
<dd><a href="#">延保服务</a></dd>
<dd><a href="#">品优购E卡</a></dd>
<dd><a href="#">品优购通信</a></dd>
</dl>
<dl>
<dt>帮助中心</dt>
<dd>
<img src="images/wx.jpg" alt="">
品优购客户端
</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>
</div>
<div class="copyright">
地址: 江西省九江市浔阳区浔阳东路169号
邮编: 332000 电话:400-618-4000
传真: 010-82935100
邮箱: 2636903367@qq.com<br>
京ICP备08001421号 京公网安备110108007702
</div>
</div>
</div>
</footer>
</body>
</html>
2、列表页框架文件
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>列表页 - 综合网购首选-正品低价、品质保障、配送及时、轻松购物!</title>
<meta name="description" content="品优购商城-专业的综合网上购物商城,销售家电、数码通讯、电脑、家居百货、服装服饰、母
婴、图书、食品等数万个品牌优质商品.便捷、诚信的服务,为您提供愉悦的网上购物体验!" />
<meta name="keywords" content="网上购物,网上商城,手机,笔记本,电脑,MP3,CD,VCD,DV,相机,数码,配件,手表,存储卡,京东" />
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/common.css">
<link rel="stylesheet" href="css/list.css">
</head>
<body>
<div class="shortcut">
<div class="w">
<div class="fl">
<ul>
<li>品优购欢迎您! </li>
<li>
<a href="#">请登录 </a>
<a href="#" class="style_red">免费注册</a>
</li>
</ul>
</div>
<div class="fr">
<ul>
<li>我的订单</li>
<li></li>
<li class="arrow-icon">我的品优购</li>
<li></li>
<li>品优购会员</li>
<li></li>
<li>企业采购</li>
<li></li>
<li class="arrow-icon">关注品优购</li>
<li></li>
<li class="arrow-icon">客户服务</li>
<li></li>
<li class="arrow-icon">网站导航</li>
</ul>
</div>
</div>
</div>
<header class="header w">
<div class="logo">
<h1>
<a href="index.html" title="品优购商城">品优购商城</a>
</h1>
</div>
<div class="sk">
<img src="images/sk.png">
</div>
<div class="search">
<input type="search" placeholder="语言开发">
<button>搜索</button>
</div>
<div class="hotwords">
<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="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="#" 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>
</ul>
</div>
</div>
</div>
<div class="w sk-container">
<div class="sk-hd">
<img src="upload/bg.png">
</div>
<div class="sk-bd">
<ul class="clearfix">
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
<li><img src="upload/list.jpg"></li>
</ul>
</div>
</div>
<footer class="footer">
<div class="w">
<div class="mod_service">
<ul>
<li>
<h5 class="service1"></h5>
<div class="service_item">
<h4>正品保障</h4>
<p>正品保障,提供发货</p>
</div>
</li>
<li>
<h5 class="service2"></h5>
<div class="service_item">
<h4>极速物流</h4>
<p>极速物流,极速送达</p>
</div>
</li>
<li>
<h5 class="service3"></h5>
<div class="service_item">
<h4>无忧售后</h4>
<p>7天无理由退货</p>
</div>
</li>
<li>
<h5 class="service4"></h5>
<div class="service_item">
<h4>特色服务</h4>
<p>私人定制家电套餐</p>
</div>
</li>
</ul>
</div>
<div class="mod_help">
<dl>
<dt>购物指南</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>配送方式</dt>
<dd><a href="#">上门自提</a></dd>
<dd><a href="#">211限时达</a></dd>
<dd><a href="#">配送服务查询</a></dd>
<dd><a href="#">配送费收取标准</a></dd>
<dd><a href="#">海外配送</a></dd>
</dl>
<dl>
<dt>支付方式</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>
</dl>
<dl>
<dt>售后服务</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>
</dl>
<dl>
<dt>特色服务</dt>
<dd><a href="#">夺宝岛</a></dd>
<dd><a href="#">DIY装机</a></dd>
<dd><a href="#">延保服务</a></dd>
<dd><a href="#">品优购E卡</a></dd>
<dd><a href="#">品优购通信</a></dd>
</dl>
<dl>
<dt>帮助中心</dt>
<dd>
<img src="images/wx.jpg" alt="">
品优购客户端
</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>
</div>
<div class="copyright">
地址: 江西省九江市浔阳区浔阳东路169号
邮编: 332000 电话:400-618-4000
传真: 010-82935100
邮箱: 2636903367@qq.com<br>
京ICP备08001421号 京公网安备110108007702
</div>
</div>
</div>
</footer>
</body>
</html>
3、注册页框架文件
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>个人注册</title>
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="css/base.css">
<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"></a>
</div>
</header>
<div class="registerarea">
<h3>
注册新用户
<div class="login">
我有账号,去<a href="#">登陆</a>
</div>
</h3>
<div class="reg-form">
<form action="">
<ul>
<li>
<label for="">手机号: </label>
<input type="text" class="inp">
<span class="error">
<i class="error-icon"></i>
手机号码格式不正确,请重新输入
</span>
</li>
<li>
<label for="">短信验证码: </label>
<input type="text" class="inp">
<span class="success">
<i class="success-icon"></i>
短信验证码正确
</span>
</li>
<li>
<label for="">登录密码: </label>
<input type="password" class="inp">
<span class="error">
<i class="error-icon"></i>
密码不少于6位数,请重新输入
</span>
</li>
<li class="safe">
安全程度
<em class="ruo">弱</em>
<em class="zhong">中</em>
<em class="qiang">强</em>
</li>
<li>
<label for="">确认密码: </label>
<input type="passwor" class="inp">
<span class="error">
<i class="error-icon"></i>
密码不一致,请重新输入
</span>
</li>
<li class="agree">
<input type="checkbox">同意协议并注册
<a href="#">《知晓用户协议》</a>
</li>
<li>
<input type="submit" value="完成注册" class="btn">
</li>
</ul>
</form>
</div>
</div>
<footer class="footer">
<div class="w">
<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>
</div>
<div class="copyright">
地址: 江西省九江市浔阳区浔阳东路169号
邮编: 332000 电话:400-618-4000
传真: 010-82935100
邮箱: 2636903367@qq.com<br>
京ICP备08001421号 京公网安备110108007702
</div>
</div>
</div>
</footer>
</div>
</body>
</html>
4、统一样式文件
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
em,
i {
font-style: normal;
}
li {
list-style: none;
}
img {
border: 0;
vertical-align: middle;
}
button {
cursor: pointer;
}
a {
color: #666;
text-decoration: none;
}
a:hover {
color: #c81623
}
button,
input {
font-family: Microsoft YaHei, Heiti SC, tahoma, arial, Hiragino Sans GB, "\5B8B\4F53", sans-serif;
border: 0;
outline: none;
}
body {
-webkit-font-smoothing: antialiased;
background-color: #fff;
font: 12px/1.5 Microsoft YaHei, Heiti SC, tahoma, arial, Hiragino Sans GB, "\5B8B\4F53", sans-serif;
color: #666;
}
.hide,
.none {
display: none;
}
.clearfix:after {
visibility: hidden;
clear: both;
display: block;
content: ".";
height: 0;
}
.clearfix:before,
.clearfix:after {
content: "";
display: table;
}
5、共用样式文件
@font-face {
font-family: 'icomoon';
src: url('../fonts/icomoon.eot?tomleg');
src: url('../fonts/icomoon.eot?tomleg#iefix') format('embedded-opentype'),
url('../fonts/icomoon.ttf?tomleg') format('truetype'),
url('../fonts/icomoon.woff?tomleg') format('woff'),
url('../fonts/icomoon.svg?tomleg#icomoon') format('svg');
font-weight: normal;
font-style: normal;
font-display: block;
}
.w {
width: 1200px;
margin: 0 auto;
}
.fl {
float: left;
}
.fr {
float: right;
}
.style_red {
color: #c81623;
}
.shortcut {
height: 30px;
line-height: 30px;
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;
}
.arrow-icon::after {
content: '\e91e';
font-family: 'icomoon';
margin-left: 5px;
}
.header {
position: relative;
height: 105px;
}
.logo {
position: absolute;
top: 25px;
width: 170px;
height: 60px;
}
.logo a {
display: block;
width: 170px;
height: 60px;
background: url(../images/logo.png);
font-size: 0;
}
.search {
position: absolute;
left: 345px;
top: 25px;
width: 534px;
height: 36px;
border: 2px solid #b1191a;
}
.search input {
float: left;
width: 450px;
height: 32px;
padding-left: 10px;
}
.search button {
float: right;
width: 80px;
height: 34px;
background-color: #b1191a;
font-size: 16px;
color: #fff;
}
.hotwords {
position: absolute;
left: 345px;
top: 70px;
}
.hotwords a {
margin: 0 10px;
}
.shopcar {
position: absolute;
top: 25px;
right: 60px;
width: 140px;
height: 35px;
border: 1px solid #dfdfdf;
background-color: #f7f7f7;
line-height: 35px;
text-align: center;
}
.shopcar::before {
content: '\e93a';
font-family: 'icomoon';
margin-right: 5px;
color: #b1191a;
}
.shopcar::after {
content: '\e920';
font-family: 'icomoon';
margin-left: 10px;
}
.count {
position: absolute;
top: -5px;
left: 90px;
height: 14px;
line-height: 14px;
color: #fff;
background-color: #e60012;
padding: 0 5px;
border-radius: 7px 7px 7px 0;
}
.nav {
height: 48px;
border-bottom: 2px solid #b1191a;
}
.nav .dropdown {
width: 210px;
height: 47px;
background: #b1191a;
}
.nav .dropdown .dt {
width: 100%;
height: 100%;
color: #fff;
text-align: center;
line-height: 48px;
font-size: 16px;
}
.nav .dropdown .dd {
width: 210px;
height: 465px;
background-color: #c81623;
margin-top: 1px;
}
.nav .dropdown .dd ul li {
position: relative;
height: 31px;
line-height: 31px;
margin-left: 2px;
padding-left: 10px;
}
.nav .dropdown .dd ul li:hover {
background-color: #fff;
}
.nav .dropdown .dd ul li::after {
position: absolute;
top: 1px;
right: 10px;
content: '\e920';
color: #fff;
font-size: 14px;
font-family: 'icomoon';
}
.nav .dropdown .dd ul li a {
font-size: 14px;
color: #fff;
}
.nav .dropdown .dd ul li:hover a {
color: #c81623;
}
.navitems ul li {
float: left;
}
.navitems ul li a {
display: block;
height: 46px;
line-height: 45px;
font-size: 16px;
padding: 0 25px;
}
.footer {
height: 415px;
background-color: #f5f5f5;
padding-top: 30px;
}
.mod_service {
height: 80px;
border-bottom: 1px solid #ccc;
}
.mod_service ul li {
float: left;
height: 50px;
width: 300px;
padding-left: 35px;
}
.mod_service ul li h5 {
float: left;
width: 50px;
height: 50px;
margin-right: 10px;
}
.service1 {
background: url(../images/icons.png) no-repeat -252px -2px;
}
.service2 {
background: url(../images/icons.png) no-repeat -255px -54px;
}
.service3 {
background: url(../images/icons.png) no-repeat -257px -105px;
}
.service4 {
background: url(../images/icons.png) no-repeat -257px -157px;
}
.service_item h4 {
font-size: 14px;
}
.service_item p {
font-size: 12px;
}
.mod_help {
height: 185px;
border-bottom: 1px solid #ccc;
padding-top: 20px;
padding-left: 50px;
}
.mod_help dl {
float: left;
width: 200px;
}
.mod_help dl:last-child {
width: 90px;
text-align: center;
}
.mod_help dl dt {
font-size: 16px;
margin-bottom: 10px;
}
.mod_copyright {
text-align: center;
padding-top: 20px;
}
.links {
margin-bottom: 15px;
}
.links a {
margin: 0 3px;
}
.copyright {
line-height: 20px;
}
6、主页样式文件
.main {
width: 980px;
height: 455px;
margin-left: 220px;
margin-top: 10px;
}
.focus {
width: 720px;
height: 455px;
}
.newsflash {
width: 250px;
height: 455px;
}
.news {
height: 165px;
border: 1px solid #e4e4e4;
}
.new-hd {
height: 35px;
line-height: 35px;
border-bottom: 1px dotted #e4e4e4;
}
.new-hd h5 {
margin-left: 20px;
font-size: 14px;
}
.new-hd .more {
margin-right: 15px;
}
.new-hd .more::after {
margin-left: 5px;
content: '\e920';
font-family: 'icomoon';
}
.new-bd {
padding: 5px 15px 0;
}
.new-bd ul li {
height: 24px;
line-height: 24px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.lifeservice {
height: 210px;
border-left: 1px solid #e4e4e4;
}
.lifeservice ul {
width: 252px;
}
.lifeservice ul li {
float: left;
width: 62px;
height: 70px;
border-right: 1px solid #e4e4e4;
border-bottom: 1px solid #e4e4e4;
text-align: center;
}
.lifeservice ul li:nth-child(4n) {
width: 63px;
}
.lifeservice ul li i {
display: inline-block;
width: 30px;
height: 30px;
margin-top: 12px;
}
.lifeservice01 {
background: url(../images/icons.png) no-repeat -13px -11px;
}
.lifeservice02 {
background: url(../images/icons.png) no-repeat -75px -11px;
}
.lifeservice03 {
background: url(../images/icons.png) no-repeat -139px -11px;
}
.lifeservice04 {
background: url(../images/icons.png) no-repeat -203px -11px;
}
.lifeservice05 {
background: url(../images/icons.png) no-repeat -13px -81px;
}
.lifeservice06 {
background: url(../images/icons.png) no-repeat -75px -81px;
}
.lifeservice07 {
background: url(../images/icons.png) no-repeat -139px -81px;
}
.lifeservice08 {
background: url(../images/icons.png) no-repeat -203px -81px;
}
.lifeservice09 {
background: url(../images/icons.png) no-repeat -13px -152px;
}
.lifeservice10 {
background: url(../images/icons.png) no-repeat -75px -152px;
}
.lifeservice11 {
background: url(../images/icons.png) no-repeat -139px -152px;
}
.lifeservice12 {
background: url(../images/icons.png) no-repeat -203px -152px;
}
.bargain {
margin-top: 5px;
}
.recom {
height: 165px;
margin-top: 10px;
}
.recom-hd {
height: 165px;
width: 208px;
background-color: #5c5251;
text-align: center;
padding-top: 35px;
}
.recom-bd ul li {
position: relative;
float: left;
}
.recom-bd ul li img {
width: 248px;
height: 165px;
}
.recom-bd ul li:nth-child(-n+3):after {
content: '';
position: absolute;
top: 10px;
right: 0;
width: 1px;
height: 145px;
background-color: #ddd;
}
.floor .w {
margin-top: 30px;
}
.box-hd {
height: 30px;
border-bottom: 2px solid#c81623;
}
.jiadian .box-hd h3 {
float: left;
font-size: 18px;
color: #c81623;
font-weight: 400;
}
.jiadian .tab-list {
line-height: 30px;
}
.jiadian .tab-list ul li {
float: left;
}
.jiadian .tab-list ul li a {
margin: 0 15px;
}
.jiadian .box-bd {
height: 360px;
}
.jiadian .box-bd .tab-list-item div {
float: left;
}
.col-210 {
width: 210px;
height: 360px;
background-color: #f9f9f9;
text-align: center;
}
.col-210 ul {
padding-left: 12px;
}
.col-210 ul li {
float: left;
width: 85px;
height: 34px;
border-bottom: 1px solid #ccc;
text-align: center;
line-height: 33px;
margin-right: 10px;
}
.col-330 {
width: 330px;
height: 360px;
}
.col-220 {
width: 220px;
height: 360px;
}
7、列表页样式文件
.nav {
overflow: hidden;
}
.sk {
position: absolute;
top: 40px;
left: 190px;
border-left: 1px solid #c81523;
padding: 3px 0 0 15px;
}
.sk-list {
float: left;
}
.sk-list ul li {
float: left;
}
.sk-list ul li a {
display: block;
line-height: 50px;
padding: 0 30px;
font-size: 16px;
font-weight: 700;
color: #000;
}
.sk-con {
float: left;
}
.sk-con ul li {
float: left;
}
.sk-con ul li a {
display: block;
line-height: 50px;
padding: 0 20px;
font-size: 14px;
}
.sk-con ul li:last-child a::after {
content: '\e91e';
font-family: 'icomoon';
}
.sk-bd ul li {
overflow: hidden;
float: left;
margin-right: 13px;
width: 290px;
height: 460px;
border: 1px solid tranparent;
}
.sk-bd ul li:nth-child(4n) {
margin-right: 0px;
}
.sk-bd ul li:hover {
border: 1px solid #c81523;
}
8、注册页样式文件
.w {
width: 1200px;
margin: 0 auto;
}
header {
height: 85px;
border-bottom: 2px solid #c81523;
}
.logo {
padding-top: 18px;
}
.registerarea {
margin-top: 20px;
height: 530px;
border: 1px solid #ccc;
}
.registerarea h3 {
height: 50px;
border-bottom: 1px solid #ccc;
background-color: #ececec;
line-height: 50px;
padding: 0 10px;
font-size: 18px;
font-weight: 400;
}
.login {
float: right;
font-size: 14px;
}
.login a {
color: #c81523;
}
.reg-form {
width: 600px;
margin: 50px auto 0;
}
.reg-form ul li {
margin-bottom: 20px;
}
.reg-form ul li label {
display: inline-block;
width: 90px;
text-align: right;
}
.reg-form ul li .inp {
width: 240px;
height: 38px;
border: 1px solid #ccc;
}
.error {
color: red;
}
.error-icon,
.success-icon {
display: inline-block;
vertical-align: middle;
width: 20px;
height: 20px;
background: url(../images/error.png) no-repeat;
margin-top: -5px;
}
.success {
color: green;
}
.success-icon {
background: url(../images/success.png) no-repeat;
}
.safe {
padding-left: 166px;
}
.safe em {
padding: 0 12px;
color: #fff;
}
.ruo {
background-color: #de1111;
}
.zhong {
background-color: #40b83f;
}
.qiang {
background-color: #f79100;
}
.agree {
margin-left: 115px;
}
.agree input {
vertical-align: middle;
}
.agree a {
color: #1ab1e6;
}
.btn {
margin: 20px 0 0 110px;
width: 200px;
height: 35px;
background-color: #c81623;
font-size: 14px;
color: #fff;
}
.mod_help {
height: 185px;
border-bottom: 1px solid #ccc;
padding-top: 20px;
padding-left: 50px;
}
.mod_help dl {
float: left;
width: 200px;
}
.mod_help dl:last-child {
width: 90px;
text-align: center;
}
.mod_help dl dt {
font-size: 16px;
margin-bottom: 10px;
}
.mod_copyright {
text-align: center;
padding-top: 20px;
}
.links {
margin-bottom: 15px;
}
.links a {
margin: 0 3px;
}
.copyright {
line-height: 20px;
}