当前位置: 首页 > news >正文

【css学习笔记9】品优购项目

一、项目搭建框架

1文件夹

2模块化开发-

commo.css 每个页面的公共部分 比如页眉页脚等

3favicon图标

<!-- 引入favicon图标 --><link rel="shortcut icon" href="favicon.ico" />

1, 制作favicon图标
2,favicon图标放到网站根目录下
3,html页面引入favicon图标

4网站tdk三大标签seo优化

seo(searchengineoptimization)汉译为搜索引擎优化,是一种利用搜索引擎的规则提高网站在有关搜索擎内自然排名的方式。
seo的目的是对网站进行深度的优化,从而帮助网站获取免费的流量,进而在搜索引擎上提升网站的排名,提高网站的知名度。

要符合搜索引擎的规则

1)title网站标题
tle具有不可替代性,是我们内页的第一个重要标签,是搜索引擎了解网页的入口和对网贡主题归属的最佳判断点。
建议:网站名(产品名)-网站的介绍(尽量不要超过30个汉字)
例如:京东(d.com)-综合网购首选正品低价,品质保障,配送及时,轻松购物!
小米商城-小米5s,红米note4,小米mix,小米笔记本官方网站

2)dlescription网站说明
简要说明我们网站主要是做什么的。
我们提,description作为网站的总体业务和主题概括,多采用"我们是。." 我们提供。. "'xxx网
作为。.","电话:010..."之类语句。(专门的seo人员写)

3)keywords关键字

越重要放在越前面
keywords是页面关键词,是搜索引的关注点之一。
eywords最好限制为6~8个关键词,关键词之间用英文逗号隔开,采用关键词1关键词2的形式。
例如:<metaname="keywords'content="网上购物,网上商城,手机,笔记本,电脑,mp3,cd,vcd,dv相机数码配件手表存储卡,京东"/>

先写共有部分再写独有的

二、首页

1确定版心w

约定的命名模块

1快捷导航栏shortcut

2header

1logo标志定位-要符合seo

1)logo里面首先放一个h1标签,目的是为了提权,告诉搜索引擎,这个地方很重要。
2)h1里面再放一个链接,可以返回首页 index.html的,把logo的背景图片给链接即可。
3)为了搜索引擎收录我们,我们链接里面要放文字(网站名称),但是文字不要显示出来。
方法1:textindent移到盒子外面(text-indent-9999px),然后overflowchidden,淘宝的做法。
方法2:直接给font-size:0;就看不到文字了,京东的做法。
4)最后给链接一个title属性(title="品优购商城"),这样鼠标放到logo上就可以看到提示文字了。

2搜索search模块

先给盒子加边框

3hotwords

a 使用定位

4shopcar

after before

购物数量count

  • count统计部分用绝对定位做
  • count统计部分不要给宽度,因为可能买的件数比较多,让件数撑开就好了,给一个高度
  • 定注意左下角不是圆角,其余三个是圆角写法:border-radius:7px7px7px0;

3nav导航制作

nav盒子通栏有高度,而且有个下边框
1号盒子左侧则浮动,dropdown

这里有说法 红色区域是一个整体应该放在一个盒子里面

2号盒子左侧测浮动,navitems导航栏组

ul li a

4 页面底部footer

footer页面底部盒子通栏给一个高度和灰色的景
footer里面有一个大的版心
版心里面包含1号盒子,modservice是服务模块,mod是模块的意思

5main主体模块

非公共部分要放在单独的css中

index.css

1)焦点图

注意焦点图要用ul li实现方便之后做过渡效果 鼠标经过换一张图

2)快报

1news

注意:这里我们分为上下两个模块,但是两个模块都用div
1号盒子news-hd新闻头部模块,给一个高度和下边框
2号盒子news-bd新闻主题部分,里面包含ul和li还有链接

6推荐模块

大盒子recom

1recom-hd

2recom-bd

7猜你喜欢

hd:h5+a

bd:ul li img

8传智播客

7商品分类页

电梯导航+楼层区

1楼层区floor

floor不要给高度 可能有很多层

第一楼是家用电器模块:里面包含两个盒子

1号盒子boxhd,给一个高度,有个下边框,里面分为左右2个盒子

2号盒子boxbd,

点击选项卡会切换 两个盒子 选项卡+内容

三、列表页

头部和尾部是公共的

list.html

1,列表页面是新的页面,我们需要新建页面文件listhtml
2,因为列表页的头部和底部基本一致,所我们需要把首页中的头部和底部的结构复制过来。
3,头部和底部的样式也需要,因此listhtml中还需要引入common.css.
4,需要新的list.css样式文件,这是列表页专门的样式文件。

1表头修改

秒杀盒子sk(secondkill)定位即可
1号盒子左侧浮动sklist里面包含ul和li
2号盒子左侧浮动skcon里面包含ul和li

写完盒子后发现页面底部飘了上来是因为 没有清除浮动 在ul中加上clearfix就可以了

四、登录页

1注册页register.html

用盒子限制这个区域,一行一行用小例

五、项目源码

首页html

<!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,相机,数码,配件,手表,存储卡,京东" /><!-- 引入favicon图标 --><link rel="shortcut icon" href="favicon.ico" /><!-- 引入我们初始化样式文件 --><link rel="stylesheet" href="css/base.css"><!-- 引入我们公共的样式文件 --><link rel="stylesheet" href="css/common0.css"><!-- 引入index.css --><link rel="stylesheet" href="css/pyg.css"></head><body><!-- 1快捷导航栏模块 start --><section class="shortcut"><div class="w"><div class="fl"><ul><li>品优购欢迎您!&nbsp;</li><li><a href="">请登录</a>&nbsp;<a href="register.html" class="style_red">免费注册</a></li></ul></div><div class="fr"><!-- 这里竖线也用xiaoli做 --><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></section><!-- 快捷导航end --><!-- 2header头部模块 start --><header class="header w"><!-- logo模块 --><div class="logo"><h1><a href="pyg.html" title="品优购商城">品优购商城</a></h1></div><!-- search模块 --><div class="search"><input type="search" placeholder="语言开发"><button>搜索</button></div><!-- hotwords模块 --><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><!-- shopcar模块 --><div class="shopcar"><a href="#">我的购物车</a><i class="count">8</i></div></header><!-- 2header头部模块 end --><!-- 3nav导航模块 start --><nav class="nav"><div class="w"><div class="dropdown"><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><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 class="highlight"><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></nav><!-- 3nav导航模块 end --><!-- 5首页main模块 start --><div class="w"><div class="main"><div class="focus"><ul><li><img src="../upload/banner1.jpg" alt=""></li></ul></div><div class="newsflash"><div class="news"><div class="news-hd"><h5>品优购快报</h5><a href="#" class="more">更多</a></div><div class="news-bd"><ul><li><strong>[特惠]</strong> 备战开学季 全民半价购数码</li><li><strong>[公告]</strong> 品优稳占家电网购六成份额</li><li><strong>[特惠]</strong> 百元中秋全品类礼券限量领</li><li><strong>[公告]</strong> 上品优生鲜 享阳澄湖大闸蟹</li><li><strong>[特惠]</strong> 每日享折扣品优 品质游</li></ul></div></div><div class="lifeservice"><ul><li><i></i><p>话费</p></li><li><i></i><p>机票</p><span class="discount-tag">减</span></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="bargin"><img src="upload/ad.jpg" alt=""></div></div></div></div><!-- 5首页main模块 end --><!-- 6推荐模块start --><div class="recom w"><div class="recom_hd"><img src="images/clock.png" alt=""><h5>今日推荐</h5></div><div class="recom_bd"><ul><li><img src="upload/recommend01.png" alt=""></li><li><img src="upload/recom_02.jpg" alt=""></li><li><img src="upload/recom_03.jpg" alt=""></li><li><img src="upload/recom_04.jpg" alt=""></li></ul></div></div><!-- 6推荐模块end --><!-- 7猜你喜欢模块start --><div class="guess w"><div class="guess_hd"><h5>猜你喜欢</h5><a href="#" class="loop">换一批</a></div><div class="guess_bd"><ul><li><img src="upload/bao.png" alt=""><h4>阳光美包新款单肩包女</h4><h4>包时尚子母包四件套女</h4><h2 class="style_red">¥116.00</h2></li><li><img src="upload/guo.png" alt=""><h4>爱仕达&nbsp;30CM炒锅不粘</h4><h4>锅NWG8330E电磁炉炒</h4><h2 class="style_red">¥99.00</h2></li><li><img src="upload/154.png" alt=""><h4 id="indent1">捷波郎</h4><h4>(jabra)BOOST颈步</h4><h2 class="style_red">¥245.00</h2></li><li><img src="upload/deng.png" alt=""><h4 id="indent2">欧普</h4><h4 id="indent2-1">JYLZ08面板灯平板灯铝</h4><h2 class="style_red">¥238.00</h2></li><li><img src="upload/phone.png" alt=""><h4 id="indent3">三星</h4><h4 id="indent3-1">(G5500)移动联</h4><h2 class="style_red">¥649.00</h2></li><li><img src="upload/muyulu.png" alt=""><h4 id="indent4">韩国所望</h4><h4 id="indent4-1">紧致湿润精华露400ml</h4><h2 class="style_red">¥649.00</h2></li></ul></div></div><!-- 7猜你喜欢模块end --><!-- 8传智播客模块start --><div class="chuanzhi w"><div class="chuanzhi_hd"><h5>传智播客</h5></div><div class="chuanzhi_bd"><div class="bk1"><img src="upload/bk1.png" alt=""></div><div class="bk2"><div class="bk2_hd"><h5>好东西</h5></div><div class="bk2_bd"><div class="bk2_bd1"><a href="#"><div class="detail"><h5>达人推荐</h5><p>雷神金属机械键盘</p><p class="style_red">与你相见恨晚</p></div><img src="upload/bk2.png" alt=""></a></div><div class="bk2_bd2"><a href="#"><div class="detail"><h5>发现好物</h5><p>一不小心霸气外露</p><p class="style_red">等你来</p></div><img src="upload/bk3.png" alt=""></a></div></div></div><div class="bk3"><div class="bk2_hd"><h5>品牌街</h5></div><div class="bk2_bd"><div class="bk2_bd1 "><a href="#"><div class="detail"><h5>苏泊尔</h5><p>返场大秀场</p><p class="style_red">爆品直降100元</p></div><img src="upload/bk4.png" alt=""></a></div><div class="bk2_bd2 bk31"><a href="#"><div class="detail"><h5>国际大牌</h5><p>adidas</p><p class="style_red">部分3免1</p></div><img src="upload/bk5.png" alt=""></a></div><div class="bk2_bd2"><a href="#"><div class="detail"><h5>本周特卖</h5><p>大牌折扣</p><p class="style_red">每周上新</p></div><img src="upload/bk6.png" alt=""></a></div></div></div><div class="bk4"><ul><a href="#"><li><img src="upload/1.png" alt=""></li></a><a href="#"><li><img src="upload/2.png" alt=""></li></a><a href="#"><li><img src="upload/1.png" alt=""></li></a><a href="#"><li><img src="upload/1.png" alt=""></li></a><a href="#"><li><img src="upload/1.png" alt=""></li></a><a href="#"><li><img src="upload/1.png" alt=""></li></a><a href="#"><li><img src="upload/1.png" alt=""></li></a><a href="#"><li><img src="upload/1.png" alt=""></li></a><a href="#"><li><img src="upload/1.png" alt=""></li></a><a href="#"><li><img src="upload/1.png" alt=""></li></a><a href="#"><li><img src="upload/1.png" alt=""></li></a><a href="#"><li><img src="upload/2.png" alt=""></li></a><a href="#"><li><img src="upload/1.png" alt=""></li></a><a href="#"><li><img src="upload/2.png" alt=""></li></a></ul></div></div></div><!-- 8chuanzhi模块end --><!-- 9楼层区start --><div class="floor"><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_content_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="#">IH电饭煲</a></li><li><a href="#">滚筒洗衣机</a></li><li><a href="#">电热水器</a></li></ul><a href="#"><h3 class="style_red">三星曲面电视</h3><h5 class="style_red">抽奖送豪礼 </h5><img src="images/tv.png" alt=""></a><!-- <img src="upload/bk7.png" alt=""> --></div><div class="col_327"><a href="#"><h3>烧水壶之智能光控泡茶茶具套装</h3><h5>满299.00减40.00</h5><img src="upload/dq1.png" alt=""></a></div><div class="col_218"><ul><li><a href="#"><h3>每满200减20元</h3><h5 class="style_red">烘焙节1元抢购</h5><img src="upload/dq2.png" alt=""></a></li><li><a href="#"><h3>买乐视电视享钜惠</h3><h5 class="style_red">送60个月会员</h5><img src="upload/dq3.png" alt=""></a></li></ul></div><div class="col_220"><a href="#"><h3>8.20彩电宅购节</h3><h5 class="style_red">65寸4k之恶能电视3799</h5><img src="upload/dq4.png" alt=""></a></div><div class="col_218"><ul><li><a href="#"><h3>消暑神奇全场领券</h3><h5 class="style_red">烘焙节1元抢购</h5><img src="upload/dq5.png" alt=""></a></li><li><a href="#"><h3>买乐视电视享钜惠</h3><h5 class="style_red">送60个月会员</h5><img src="upload/dq6.png" alt=""></a></li></ul></div></div></div></div></div><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_content_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="#">IH电饭煲</a></li><li><a href="#">滚筒洗衣机</a></li><li><a href="#">电热水器</a></li></ul><a href="#"><h3 class="style_red">三星曲面电视</h3><h5 class="style_red">抽奖送豪礼 </h5><img src="images/tv.png" alt=""></a><!-- <img src="upload/bk7.png" alt=""> --></div><div class="col_327"><a href="#"><h3>烧水壶之智能光控泡茶茶具套装</h3><h5>满299.00减40.00</h5><img src="upload/dq1.png" alt=""></a></div><div class="col_218"><ul><li><a href="#"><h3>每满200减20元</h3><h5 class="style_red">烘焙节1元抢购</h5><img src="upload/dq2.png" alt=""></a></li><li><a href="#"><h3>买乐视电视享钜惠</h3><h5 class="style_red">送60个月会员</h5><img src="upload/dq3.png" alt=""></a></li></ul></div><div class="col_220"><a href="#"><h3>8.20彩电宅购节</h3><h5 class="style_red">65寸4k之恶能电视3799</h5><img src="upload/dq4.png" alt=""></a></div><div class="col_218"><ul><li><a href="#"><h3>消暑神奇全场领券</h3><h5 class="style_red">烘焙节1元抢购</h5><img src="upload/dq5.png" alt=""></a></li><li><a href="#"><h3>买乐视电视享钜惠</h3><h5 class="style_red">送60个月会员</h5><img src="upload/dq6.png" alt=""></a></li></ul></div></div></div></div></div><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_content_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="#">IH电饭煲</a></li><li><a href="#">滚筒洗衣机</a></li><li><a href="#">电热水器</a></li></ul><a href="#"><h3 class="style_red">三星曲面电视</h3><h5 class="style_red">抽奖送豪礼 </h5><img src="images/tv.png" alt=""></a><!-- <img src="upload/bk7.png" alt=""> --></div><div class="col_327"><a href="#"><h3>烧水壶之智能光控泡茶茶具套装</h3><h5>满299.00减40.00</h5><img src="upload/dq1.png" alt=""></a></div><div class="col_218"><ul><li><a href="#"><h3>每满200减20元</h3><h5 class="style_red">烘焙节1元抢购</h5><img src="upload/dq2.png" alt=""></a></li><li><a href="#"><h3>买乐视电视享钜惠</h3><h5 class="style_red">送60个月会员</h5><img src="upload/dq3.png" alt=""></a></li></ul></div><div class="col_220"><a href="#"><h3>8.20彩电宅购节</h3><h5 class="style_red">65寸4k之恶能电视3799</h5><img src="upload/dq4.png" alt=""></a></div><div class="col_218"><ul><li><a href="#"><h3>消暑神奇全场领券</h3><h5 class="style_red">烘焙节1元抢购</h5><img src="upload/dq5.png" alt=""></a></li><li><a href="#"><h3>买乐视电视享钜惠</h3><h5 class="style_red">送60个月会员</h5><img src="upload/dq6.png" alt=""></a></li></ul></div></div></div></div></div></div><!-- 楼层区end --><!-- 4底部模块start --><footer class="footer"><div class="w"><div class="mod_service"><div class="service_item"><ul><li><h5></h5><div class="service_txt"><h4>正品服务</h4><p>正品保障,提供发票</p></div></li><li><h5></h5><div class="service_txt"><h4>正品服务</h4><p>正品保障,提供发票</p></div></li><li><h5></h5><div class="service_txt"><h4>正品服务</h4><p>正品保障,提供发票</p></div></li><li><h5></h5><div class="service_txt"><h4>正品服务</h4><p>正品保障,提供发票</p></div></li><li><h5></h5><div class="service_txt"><h4>正品服务</h4><p>正品保障,提供发票</p></div></li></ul></div></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></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><span></span><dd><a href="#">品优购客户端</a></dd></dl></div><div class="mod_copyright"><div class="copyright"><div class="links"><a href="#">关于我们</a> | <a href="#">联系我们</a> | <a href="#">联系客服</a> | <a href="#">商家入驻</a> | <ahref="#">营销中心</a> | <a href="#">手机品优购</a> | <a href="#">友情链接</a> | <a href="#">销售联盟</a> | <ahref="#">品优购社区</a> | <a href="#">品优购公益</a> |<a href="#">English Site</a> | <a href="#">Contact U</a></div><div class="copyright">地址:北京市昌平区建材城西路金燕龙办公楼一层 邮编:100096 电话:400 - 618 - 4000 传真:010 - 82935100 邮箱:zhanggj@itcast.cn <br>京 ICP 备 08001421 号 京公网安备 110108007702</div></div></div></div></footer><!-- 底部模块end --></body></html>

注册页html

<!-- 个人注册页面 -->
<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>个人注册</title><!-- 引入favicon图标 --><link rel="shortcut icon" href="favicon.ico" /><link rel="stylesheet" href="css/register.css"><!-- 引入基础样式文件 --><link rel="stylesheet" href="css/base.css"></head><body><div class="w"><header><div class="logo"><a href="pyg.html" title="品优购商城"><img src="images/logo.png" alt=""></a></div></header><div class="registerarea"><h3>注册新用户<div class="login">我有账号,去<a href="#">登录</a></div></h3><div class="rg_from"><ul><li><label for="phone">手机号:</label><input type="text" class="inp"><span class="error"> <i class="error_icon"></i>手机号码格式不正确,请重新输入</span></li><li><label for="phone">手机号:</label><input type="text" class="inp"><span class="ture"> <i class="ture_icon"></i>手机号码格式不正确,请重新输入</span></li><li><label for="phone">手机号:</label><input type="text" class="inp"><span class="error"> <i class="error_icon"></i>手机号码格式不正确,请重新输入</span></li><li class="safe">安全程度<em style="background-color: red;">低</em><em style="background-color: orange;">中</em><em style="background-color: green;">高</em></li><li><label for="phone">手机号:</label><input type="text" class="inp"><span class="error"> <i class="error_icon"></i>手机号码格式不正确,请重新输入</span></li><li class="agree"><input type="checkbox">同意协议并注册<a href="#">《知晓用户协议》</a></li><li class="btn"><button>提交注册</button></li></ul></div></div><footer><div class="mod_copyright"><div class="copyright"><div class="links"><a href="#">关于我们</a> | <a href="#">联系我们</a> | <a href="#">联系客服</a> | <a href="#">商家入驻</a> | <ahref="#">营销中心</a> | <a href="#">手机品优购</a> | <a href="#">友情链接</a> | <a href="#">销售联盟</a> | <ahref="#">品优购社区</a> | <a href="#">品优购公益</a> |<a href="#">English Site</a> | <a href="#">Contact U</a></div><div class="copyright">地址:北京市昌平区建材城西路金燕龙办公楼一层 邮编:100096 电话:400 - 618 - 4000 传真:010 - 82935100 邮箱:zhanggj@itcast.cn <br>京 ICP 备 08001421 号 京公网安备 110108007702</div></div></div></footer></div></body></html>

商品页html

<!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,相机,数码,配件,手表,存储卡,京东" /><!-- 引入favicon图标 --><link rel="shortcut icon" href="favicon.ico" /><!-- 引入我们初始化样式文件 --><link rel="stylesheet" href="css/base.css"><!-- 引入我们公共的样式文件 --><link rel="stylesheet" href="css/common0.css"><!-- 引入list.css --><link rel="stylesheet" href="css/list.css"></head><body><!-- 1快捷导航栏模块 start --><section class="shortcut"><div class="w"><div class="fl"><ul><li>品优购欢迎您!&nbsp;</li><li><a href="">请登录</a>&nbsp;<a href="register.html" class="style_red">免费注册</a></li></ul></div><div class="fr"><!-- 这里竖线也用xiaoli做 --><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></section><!-- 快捷导航end --><!-- 2header头部模块 start --><header class="header w"><!-- logo模块 --><div class="logo"><h1><a href="pyg.html" title="品优购商城">品优购商城</a></h1></div><!-- 列表页的秒杀模块 --><div class="sk"><img src="images/sk.png" alt=""></div><div class="search"><input type="search" placeholder="语言开发"><button>搜索</button></div><!-- hotwords模块 --><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><!-- shopcar模块 --><div class="shopcar"><a href="#">我的购物车</a><i class="count">8</i></div></header><!-- 3nav导航模块 start --><nav 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><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></nav><!-- 3nav导航模块 end --><!-- 5列表页主题部分start --><div class="w sk_container"><div class="sk_hd"><h5>手机</h5><p>———— 正在抢购 ————</p></div><div class="sk_bd"><ul class="clearfix"><li><img src="images/iphone.png" alt=""><p style="font-size: 14px;line-height: 18px;margin:0 10px;">apple苹果iphone15(A1699)64G蓝色 移动联通电信手机</p><div class="price" style="margin:15px 10px ;"><h3>¥6088 </h3><h5>¥6988</h5></div><div style="margin-top: 15px;margin:0 10px;"><div style="font-size: 14px;line-height: 18px;">已售87%</div><div class="bar"><div class="bar_in" style="width: 87%;"></div></div><div style="font-size: 14px;line-height: 18px;">剩余<span class="style_red">29</span>件</div></div><div><button>立即抢购</button></div></li><li><img src="images/iphone.png" alt=""><p style="font-size: 14px;line-height: 18px;margin:0 10px;">apple苹果iphone15(A1699)64G蓝色 移动联通电信手机</p><div class="price" style="margin:15px 10px ;"><h3>¥6088 </h3><h5>¥6988</h5></div><div style="margin-top: 15px;margin:0 10px;"><div style="font-size: 14px;line-height: 18px;">已售87%</div><div class="bar"><div class="bar_in" style="width: 87%;"></div></div><div style="font-size: 14px;line-height: 18px;">剩余<span class="style_red">29</span>件</div></div><div><button>立即抢购</button></div></li><li><img src="images/iphone.png" alt=""><p style="font-size: 14px;line-height: 18px;margin:0 10px;">apple苹果iphone15(A1699)64G蓝色 移动联通电信手机</p><div class="price" style="margin:15px 10px ;"><h3>¥6088 </h3><h5>¥6988</h5></div><div style="margin-top: 15px;margin:0 10px;"><div style="font-size: 14px;line-height: 18px;">已售87%</div><div class="bar"><div class="bar_in" style="width: 87%;"></div></div><div style="font-size: 14px;line-height: 18px;">剩余<span class="style_red">29</span>件</div></div><div><button>立即抢购</button></div></li><li><img src="images/iphone.png" alt=""><p style="font-size: 14px;line-height: 18px;margin:0 10px;">apple苹果iphone15(A1699)64G蓝色 移动联通电信手机</p><div class="price" style="margin:15px 10px ;"><h3>¥6088 </h3><h5>¥6988</h5></div><div style="margin-top: 15px;margin:0 10px;"><div style="font-size: 14px;line-height: 18px;">已售87%</div><div class="bar"><div class="bar_in" style="width: 87%;"></div></div><div style="font-size: 14px;line-height: 18px;">剩余<span class="style_red">29</span>件</div></div><div><button>立即抢购</button></div></li><li><img src="images/iphone.png" alt=""><p style="font-size: 14px;line-height: 18px;margin:0 10px;">apple苹果iphone15(A1699)64G蓝色 移动联通电信手机</p><div class="price" style="margin:15px 10px ;"><h3>¥6088 </h3><h5>¥6988</h5></div><div style="margin-top: 15px;margin:0 10px;"><div style="font-size: 14px;line-height: 18px;">已售87%</div><div class="bar"><div class="bar_in" style="width: 87%;"></div></div><div style="font-size: 14px;line-height: 18px;">剩余<span class="style_red">29</span>件</div></div><div><button>立即抢购</button></div></li><li><img src="images/iphone.png" alt=""><p style="font-size: 14px;line-height: 18px;margin:0 10px;">apple苹果iphone15(A1699)64G蓝色 移动联通电信手机</p><div class="price" style="margin:15px 10px ;"><h3>¥6088 </h3><h5>¥6988</h5></div><div style="margin-top: 15px;margin:0 10px;"><div style="font-size: 14px;line-height: 18px;">已售87%</div><div class="bar"><div class="bar_in" style="width: 87%;"></div></div><div style="font-size: 14px;line-height: 18px;">剩余<span class="style_red">29</span>件</div></div><div><button>立即抢购</button></div></li><li><img src="images/iphone.png" alt=""><p style="font-size: 14px;line-height: 18px;margin:0 10px;">apple苹果iphone15(A1699)64G蓝色 移动联通电信手机</p><div class="price" style="margin:15px 10px ;"><h3>¥6088 </h3><h5>¥6988</h5></div><div style="margin-top: 15px;margin:0 10px;"><div style="font-size: 14px;line-height: 18px;">已售87%</div><div class="bar"><div class="bar_in" style="width: 87%;"></div></div><div style="font-size: 14px;line-height: 18px;">剩余<span class="style_red">29</span>件</div></div><div><button>立即抢购</button></div></li><li><img src="images/iphone.png" alt=""><p style="font-size: 14px;line-height: 18px;margin:0 10px;">apple苹果iphone15(A1699)64G蓝色 移动联通电信手机</p><div class="price" style="margin:15px 10px ;"><h3>¥6088 </h3><h5>¥6988</h5></div><div style="margin-top: 15px;margin:0 10px;"><div style="font-size: 14px;line-height: 18px;">已售87%</div><div class="bar"><div class="bar_in" style="width: 87%;"></div></div><div style="font-size: 14px;line-height: 18px;">剩余<span class="style_red">29</span>件</div></div><div><button>立即抢购</button></div></li><li><img src="images/iphone.png" alt=""><p style="font-size: 14px;line-height: 18px;margin:0 10px;">apple苹果iphone15(A1699)64G蓝色 移动联通电信手机</p><div class="price" style="margin:15px 10px ;"><h3>¥6088 </h3><h5>¥6988</h5></div><div style="margin-top: 15px;margin:0 10px;"><div style="font-size: 14px;line-height: 18px;">已售87%</div><div class="bar"><div class="bar_in" style="width: 87%;"></div></div><div style="font-size: 14px;line-height: 18px;">剩余<span class="style_red">29</span>件</div></div><div><button>立即抢购</button></div></li><li><img src="images/iphone.png" alt=""><p style="font-size: 14px;line-height: 18px;margin:0 10px;">apple苹果iphone15(A1699)64G蓝色 移动联通电信手机</p><div class="price" style="margin:15px 10px ;"><h3>¥6088 </h3><h5>¥6988</h5></div><div style="margin-top: 15px;margin:0 10px;"><div style="font-size: 14px;line-height: 18px;">已售87%</div><div class="bar"><div class="bar_in" style="width: 87%;"></div></div><div style="font-size: 14px;line-height: 18px;">剩余<span class="style_red">29</span>件</div></div><div><button>立即抢购</button></div></li><li><img src="images/iphone.png" alt=""><p style="font-size: 14px;line-height: 18px;margin:0 10px;">apple苹果iphone15(A1699)64G蓝色 移动联通电信手机</p><div class="price" style="margin:15px 10px ;"><h3>¥6088 </h3><h5>¥6988</h5></div><div style="margin-top: 15px;margin:0 10px;"><div style="font-size: 14px;line-height: 18px;">已售87%</div><div class="bar"><div class="bar_in" style="width: 87%;"></div></div><div style="font-size: 14px;line-height: 18px;">剩余<span class="style_red">29</span>件</div></div><div><button>立即抢购</button></div></li><li><img src="images/iphone.png" alt=""><p style="font-size: 14px;line-height: 18px;margin:0 10px;">apple苹果iphone15(A1699)64G蓝色 移动联通电信手机</p><div class="price" style="margin:15px 10px ;"><h3>¥6088 </h3><h5>¥6988</h5></div><div style="margin-top: 15px;margin:0 10px;"><div style="font-size: 14px;line-height: 18px;">已售87%</div><div class="bar"><div class="bar_in" style="width: 87%;"></div></div><div style="font-size: 14px;line-height: 18px;">剩余<span class="style_red">29</span>件</div></div><div><button>立即抢购</button></div></li></ul></div></div><!-- 4底部模块start --><footer class="footer"><div class="w"><div class="mod_service"><div class="service_item"><ul><li><h5></h5><div class="service_txt"><h4>正品服务</h4><p>正品保障,提供发票</p></div></li><li><h5></h5><div class="service_txt"><h4>正品服务</h4><p>正品保障,提供发票</p></div></li><li><h5></h5><div class="service_txt"><h4>正品服务</h4><p>正品保障,提供发票</p></div></li><li><h5></h5><div class="service_txt"><h4>正品服务</h4><p>正品保障,提供发票</p></div></li><li><h5></h5><div class="service_txt"><h4>正品服务</h4><p>正品保障,提供发票</p></div></li></ul></div></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></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><span></span><dd><a href="#">品优购客户端</a></dd></dl></div><div class="mod_copyright"><div class="copyright"><div class="links"><a href="#">关于我们</a> | <a href="#">联系我们</a> | <a href="#">联系客服</a> | <a href="#">商家入驻</a> | <ahref="#">营销中心</a> | <a href="#">手机品优购</a> | <a href="#">友情链接</a> | <a href="#">销售联盟</a> | <ahref="#">品优购社区</a> | <a href="#">品优购公益</a> |<a href="#">English Site</a> | <a href="#">Contact U</a></div><div class="copyright">地址:北京市昌平区建材城西路金燕龙办公楼一层 邮编:100096 电话:400 - 618 - 4000 传真:010 - 82935100 邮箱:zhanggj@itcast.cn <br>京 ICP 备 08001421 号 京公网安备 110108007702</div></div></div></div></footer><!-- 底部模块end -->
</body></html>

基础样式base

/* 把我们所有标签的内外边距清零 */
* {margin: 0;padding: 0;/* css3盒子模型 */box-sizing: border-box;
}
/* em 和 i 斜体的文字不倾斜 */
em,
i {font-style: normal
}
/* 去掉li 的小圆点 */
li {list-style: none
}img {/* border 0 照顾低版本浏览器 如果 图片外面包含了链接会有边框的问题 */border: 0;/* 取消图片底侧有空白缝隙的问题 */vertical-align: middle
}button {/* 当我们鼠标经过button 按钮的时候,鼠标变成小手 */cursor: pointer
}a {color: #666;text-decoration: none
}a:hover {color: #c81623
}button,
input {/* "\5B8B\4F53" 就是宋体的意思 这样浏览器兼容性比较好 */font-family: Microsoft YaHei, Heiti SC, tahoma, arial, Hiragino Sans GB, "\5B8B\4F53", sans-serif;/* 默认有灰色边框我们需要手动去掉 */border: 0; outline: none;
}body {/* CSS3 抗锯齿形 让文字显示的更加清晰 */-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 {*zoom: 1
}

公共样式common

@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;line-height: 30px;
}/* 选中偶数的小例盒子设置小竖线的样式 */
.shortcut .fr ul li:nth-child(even) {width: 1px;height: 12px;background-color: #666;margin: 9px 15px 0;
}/* 伪元素选择器 */
.arrow-icon::after {content: "\e91e";font-family: "icomoon";margin-left: 6px;
}.header {position: relative;height: 105px;
}.logo {position: absolute;top: 25px;width: 171px;height: 61px;
}.logo a {/* 链接是行元素必须转换 */display: block;width: 171px;height: 61px;background: url(../images/logo.png) no-repeat;/* font-size: 0;京东 *//* 淘宝 让文字隐藏 */text-indent: -9999px;overflow: hidden;
}.search {position: absolute;left: 346px;top: 25px;width: 538px;height: 36px;border: 2px solid #b1191a;
}.search input {float: left;width: 454px;height: 32px;padding-left: 10px;
}.search button {float: left;width: 80px;height: 32px;background-color: #b1191a;font-size: 16px;color: #fff;
}.hotwords {position: absolute;top: 66px;left: 346px;
}.hotwords a {margin: 0 10px;
}.shopcar {position: absolute;right: 60px;top: 25px;width: 140px;height: 35px;line-height: 35px;text-align: center;border: 1px solid #dfdfdf;background-color: #f7f7f7;
}.shopcar::before {content: "\e93a";font-family: "icomoon";margin-right: 5px;color: #c81623;
}.shopcar::after {content: "\e920";font-family: "icomoon";font-size: 13px;margin-left: 10px;
}.count {position: absolute;top: -5px;/* 左对齐 如果数量过多增加到右边 */left: 105px;width: 16px;height: 14px;line-height: 14px;text-align: center;background-color: #e60012;color: #fff;border-radius: 7px 7px 7px 0;
}.nav {height: 47px;border-bottom: 2px solid #b1191a;
}.nav .dropdown {float: left;width: 210px;height: 47px;background-color: #b1191a;
}.nav.navitems {float: left;
}.dropdown .dt {width: 100%;height: 100%;font-size: 16px;color: #fff;text-align: center;line-height: 45px;
}.dropdown .dd {width: 210px;height: 465px;background-color: #c81623;/* display: none; *//* margin-top: 2px; */
}.dropdown .dd ul li {position: relative;height: 31px;line-height: 31px;margin-left: 2px;color: #fff;
}.dropdown .dd ul li a {font-size: 14px;color: #fff;padding-left: 10px;
}.dropdown .dd ul li:hover {background-color: #fff;
}.dropdown .dd ul li:hover a {background-color: #fff;color: #c81623;
}.dropdown .dd ul li::after {position: absolute;top: 1px;right: 10px;content: "\e920";font-family: "icomoon";font-size: 14px;margin-left: 10px;
}.navitems ul li {float: left;
}.navitems ul li a {display: block;height: 45px;line-height: 45px;font-size: 16px;padding: 0 25px;
}/* 底部模块 */
.footer {height: 415px;background-color: #f7f7f7;padding-top: 30px;
}.mod_service {height: 80px;border-bottom: 1px solid #e5e5e5;
}.mod_service ul li {float: left;width: 240px;height: 50px;padding-left: 35px;
}.mod_service ul li h5 {float: left;width: 50px;height: 50px;margin-right: 6px;background: url(../images/icons.png) no-repeat -252px -2px;
}.mod_service ul li:nth-child(2) h5 {float: left;width: 52px;height: 50px;margin-right: 6px;background: url(../images/icons.png) no-repeat -252px -53px;
}.mod_service ul li:nth-child(3) h5 {background: url(../images/icons.png) no-repeat -257px -106px;
}.mod_service ul li:nth-child(4) h5 {background: url(../images/icons.png) no-repeat -258px -156px;margin-right: 8px;
}.mod_service ul li:nth-child(5) h5 {background: url(../images/icons.png) no-repeat -256px -208px;margin-right: 8px;
}.service_txt h4 {font-size: 14px;
}.service_txt p {font-size: 12px;
}.mod_help {height: 180px;border-bottom: 1px solid #e5e5e5;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_help span {display: block;width: 93px;height: 93px;background: url(../images/erweima.png) no-repeat -1px -1px;/* margin: 0 10px; */
}.mod_copyright {text-align: center;padding-top: 20px;}.links {margin-bottom: 15px;
}.links a {margin: 0 10px;
}.copyright {line-height: 20px;
}/* 1 *//* 2 */

商品页样式list

/* 列表页专有样式 */
@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;
}.nav {overflow: hidden;
}.sk img {position: absolute;width: 80px;height: 33px;border-left: 1px solid #c81623;left: 190px;top: 40px;
}.sk_list ul li {float: left;
}.sk_list ul li a {display: block;line-height: 47px;color: #000;font-size: 16px;font-weight: 700;padding: 0 30px;
}.sk_con {float: left;
}.sk_con ul li {float: left;
}.sk_con ul li a {display: block;line-height: 49px;font-size: 14px;padding: 0 20px;
}.sk_con ul li:last-child a::after {content: "\e91e";font-family: "icomoon";font-size: 12px;color: #666;
}.sk_hd {height: 120px;background: url(../images/banner1.png) no-repeat center;
}.sk_hd h5 {font-size: 20px;text-align: center;color: #c81623;padding-top: 25px;
}.sk_hd h5::before {content: "\e942";font-family: "icomoon";font-size: 18px;color: #c81623;margin-right: 5px;
}.sk_hd p {font-size: 12px;text-align: center;color: #000;padding-top: 20px;
}.sk_bd ul li {float: left;width: 288px;height: 460px;border: 1px solid #fff;margin-right: 13px;/* padding: 0 10px; */
}.sk_bd ul li:nth-child(4n) {margin-right: 0;
}.sk_bd ul li:hover {border: 1px solid #c81623;
}.sk_bd .price {height: 20px;line-height: 20px;margin-top: 15px;
}.sk_bd ul h3 {float: left;font-size: 18px;color: #c81623;
}.sk_bd ul h5 {float: left;font-size: 14px;color: #666;text-decoration: line-through;
}.sk_bd div {float: left;
}.bar {float: left;width: 137px;height: 13px;border: 1px solid #c81623;border-radius: 7px;margin: 0 5px;/* padding: 1px; */
}.bar_in {height: 100%;background-color: #c81623;
}.sk_bd button {width: 287px;height: 50px;background-color: #c81623;color: #fff;margin-top: 15px;
}

首页样式

@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;
}.main {width: 980px;height: 455px;margin-left: 220px;margin-top: 10px;
}.focus {float: left;width: 721px;height: 455px;background: url(../upload/banner_bg.png) no-repeat;}.newsflash {float: right;width: 250px;height: 455px;
}.news {height: 165px;border: 1px solid #e4e4e4;
}.news-hd {height: 35px;line-height: 35px;/* 点线 */border-bottom: 1px dotted #e4e4e4;padding: 0 15px;
}.news-hd h5 {float: left;font-size: 14px;color: #666;font-weight: 400;}.news-hd .more {float: right;}.news-hd .more::after {font-family: 'icomoon';content: "\e920";
}.news-bd {padding: 5px 15px 0;}.news-bd ul li {height: 24px;line-height: 24px;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;
}.lifeservice {/* 超出部分的隐藏 */overflow: hidden;height: 209px;border: 1px solid #e4e4e4;border-top: none;
}/* 加宽ul 可以放下四个li */
.lifeservice ul {width: 252px;
}.lifeservice ul li {position: relative;float: left;width: 63px;height: 71px;border-right: 1px solid #e4e4e4;border-bottom: 1px solid #e4e4e4;text-align: center;
}.lifeservice .discount-tag {position: absolute;top: 0;right: 0;width: 20px;height: 15px;background-color: #629a65;color: #fff;text-align: center;line-height: 15px;}.lifeservice ul li i {display: inline-block;/* margin: 10px auto; */width: 24px;height: 28px;margin-top: 12px;background: url(../images/icons.png) no-repeat -19px -15px;
}.lifeservice ul li:nth-of-type(2) i {background: url(../images/icons.png) no-repeat -80px -17px;
}.lifeservice ul li:nth-of-type(3) i {background: url(../images/icons.png) no-repeat -141px -18px;
}.lifeservice ul li:nth-of-type(4) i {background: url(../images/icons.png) no-repeat -206px -15px;
}.lifeservice ul li:nth-of-type(5) i {background: url(../images/icons.png) no-repeat -16px -85px;
}.lifeservice ul li:nth-of-type(6) i {background: url(../images/icons.png) no-repeat -80px -85px;
}.lifeservice ul li:nth-of-type(7) i {background: url(../images/icons.png) no-repeat -142px -86px;
}.lifeservice ul li:nth-of-type(8) i {background: url(../images/icons.png) no-repeat -206px -87px;
}.lifeservice ul li:nth-of-type(9) i {background: url(../images/icons.png) no-repeat -16px -155px;
}.lifeservice ul li:nth-of-type(10) i {background: url(../images/icons.png) no-repeat -79px -156px;
}.lifeservice ul li:nth-of-type(11) i {background: url(../images/icons.png) no-repeat -143px -150px;
}.lifeservice ul li:nth-of-type(12) i {background: url(../images/icons.png) no-repeat -206px -156px;
}.bargin {margin-top: 5px;
}.recom {height: 163px;background-color: #ebebeb;margin-top: 10px;
}.recom_hd {float: left;width: 205px;height: 163px;background-color: #5c5251;text-align: center;padding-top: 30px;
}.recom_hd h5 {font-size: 14px;color: #fff;font-weight: 400;margin-top: 10px;
}.recom_bd {float: left;
}.recom_bd ul li {position: relative;float: left;
}/* 图片大小写死 图片原本的大小可能不一样大 */
.recom_bd ul li img {width: 248px;height: 163px;
}/* 对前三个盒子间加竖线 */
.recom_bd ul li:nth-child(-n+3)::after {content: " ";position: absolute;right: 0;top: 10px;width: 1px;height: 145px;background-color: #ddd;
}.guess {height: 272px;/* background-color: #ebebeb; */margin-top: 20px;
}.guess_hd {height: 40px;line-height: 40px;color: #666;/* font-weight: 400; */background-color: #fff;
}.guess_hd h5 {float: left;font-size: 18px;font-weight: normal;
}.guess_hd a {float: right;font-size: 14px;color: #666;
}.guess_hd a::after {font-family: "icomoon";content: "\e925";margin-left: 10px;
}.guess_bd {height: 232px;/* background-color: #fff; */border: 1px solid #e4e4e4;
}.guess_bd ul li {position: relative;float: left;width: 199px;text-align: center;/* margin: 0 20px 10px; */
}.guess_bd ul li img {border: 0;vertical-align: middle;
}.guess_bd ul li:nth-child(1) img {padding: 10px 0;
}.guess_bd ul li:nth-child(2) img {padding-top: 40px;
}.guess_bd ul li:nth-child(3) img {padding: 22px 50px 9px;
}.guess_bd ul li:nth-child(4) img {padding: 50px 0 46px;
}.guess_bd ul li:nth-child(5) img {padding: 22px 0 9px;
}.guess_bd ul li:nth-child(6) img {padding: 22px 0 9px;
}.guess_bd ul li:nth-child(-n+5)::after {content: " ";position: absolute;right: 0;width: 1px;bottom: 10px;height: 61px;background-color: #ddd;
}.chuanzhi {height: 445px;/* background-color: pink; */margin-top: 15px;
}.chuanzhi_hd {height: 40px;line-height: 40px;color: #666;
}.chuanzhi_hd h5 {font-size: 18px;font-weight: normal;
}.chuanzhi_bd {height: 405px;/* background-color: blue; */border: 1px solid #e4e4e4;
}.chuanzhi_bd .bk1 {float: left;
}.chuanzhi_bd img {height: 403px;width: 405px;
}.chuanzhi_bd .bk2 {float: left;width: 225px;height: 100%;border-right: 1px solid #e4e4e4;/* background-color: yellow; */
}.chuanzhi_bd .bk2_hd {height: 40px;line-height: 40px;
}.chuanzhi_bd .bk2_hd h5 {font-size: 18px;font-weight: normal;text-align: center;margin: 0 16px;color: #666;border-bottom: 1px dotted #e4e4e4;
}.bk2_bd1 .detail {padding: 67px 0 72px 10px;
}.bk2_bd2 .detail {padding: 50px 0 44px 10px;
}.detail h5 {font-size: 14px;font-weight: normal;margin-top: 10px;color: black;
}.detail p {font-size: 12px;
}.chuanzhi_bd .bk2_bd1 {position: relative;
}.chuanzhi_bd .bk2_bd2 {position: relative;
}.chuanzhi_bd .bk2_bd1 img {position: absolute;top: 10px;right: -1px;width: 135px;height: 163px;
}.chuanzhi_bd .bk2_bd2 img {position: absolute;top: 10px;right: -1px;width: 122px;height: 148px;
}.chuanzhi_bd .bk2_bd1 {border-bottom: 1px solid #e4e4e4;
}.bk3 {float: left;width: 404px;height: 100%;border-right: 1px solid #e4e4e4;
}.bk3 .bk2_bd1 {position: relative;}.bk3 .bk2_bd2 {position: relative;height: 158px;
}.bk3 .bk2_bd1 img {position: absolute;top: 33px;right: 1px;width: 206px;height: 162px;
}.bk3 .bk2_bd2 {position: relative;float: left;width: 201px;
}.bk2_bd .bk31 {border-right: 1px solid #e4e4e4;
}.bk3 .bk2_bd2 img {position: absolute;top: 20px;right: -1px;width: 120px;height: 137px;
}.bk4 ul {float: right;width: 150px;height: 380px;/* float: right; */margin-top: 10px;margin-left: 10px;background-color: pink;background: url(upload/bk7.png) no-repeat -3px -3px;
}.bk4 ul a {display: block;float: left;width: 75px;height: 55px;/* background-color: red; */border-right: 1px dotted #e4e4e4;border-bottom: 1px dotted #e4e4e4;
}.bk4 img {width: 70px;height: 50px;/* background-color: red; */
}.bk4 ul a:nth-child(2n) {border-right: none;
}.bk4 ul a:nth-last-child(-n + 2) {border-bottom: none;
}/* 家用电器 */
.box_hd {height: 30px;border-bottom: 2px solid #c81623;
}.box_hd h3 {float: left;font-size: 18px;font-weight: normal;color: #c81623;line-height: 30px;/* padding-left: 10px; */
}.tab_list {float: right;line-height: 30px;
}.tab_list ul li {float: left;
}.tab_list ul li a {margin: 0 15px;
}.floor .w {margin-top: 30px;
}.box_bd {height: 361px;
}.tab_content_item>div {float: left;}.col_210 {width: 210px;height: 361px;text-align: center;background-color: #f5f5f5;
}.col_210 ul {padding-left: 12px;
}.col_210 ul li {float: left;width: 85px;height: 34px;line-height: 33px;text-align: center;border-bottom: 1px solid #e4e4e4;margin-right: 10px;
}.col_210 h3 {float: left;font-size: 16px;font-weight: normal;text-align: center;margin: 24px 45px 0 52px;}.col_210 h5 {float: left;font-size: 14px;font-weight: normal;margin: 0 70px;/* text-align: center; */
}/* .col_210 img {float: left;
} */.col_327 {width: 327px;height: 361px;background-color: #aed6d8;
}.col_327 h3 {font-size: 16px;font-weight: normal;
}.col_327 a {display: block;margin: 34px 30px;color: #05687a;
}.col_327 img {font-size: 16px;font-weight: normal;margin-top: 33px;margin-left: 25px;
}.col_218 {width: 218px;height: 360px;border-right: 1px solid #e4e4e4;
}.col_218 ul li {float: left;position: relative;width: 219px;height: 180px;border-bottom: 1px solid #e4e4e4;
}.col_218 h3 {/* font-size: 18px; */font-weight: normal;margin-top: 22px;margin-left: 18px;color: black;
}.col_218 h5 {font-size: 12px;font-weight: normal;/* margin-top: 10px; */margin-left: 18px;
}.col_218 img {position: absolute;float: left;bottom: 0px;right: 2px;
}.col_220 {position: relative;width: 219px;height: 360px;text-align: center;border-right: 1px solid #e4e4e4;border-bottom: 1px solid #e4e4e4;
}.col_220 h3 {/* font-size: 18px; */font-weight: normal;margin-top: 69px;color: black;
}.col_220 h5 {font-size: 12px;font-weight: normal;/* margin-top: 10px; */margin-left: 18px;
}.col_220 img {/* position: absolute; */float: left;vertical-align: middle;margin: 83px 23px 48px 23px;
}

注册页样式

.w {width: 1200px;margin: 0 auto;
}header {height: 84px;border-bottom: 2px solid #c81523;
}.logo {/* 如果写margintop会带动大盒子一起移动 */padding-top: 18px;
}.registerarea {height: 522px;border: 1px solid #ccc;margin-top: 20px;
}.registerarea h3 {/* float: left; */height: 42px;line-height: 42px;font-size: 18px;font-weight: 700;color: #333;padding-left: 10px;border-bottom: 1px solid #ececec;
}.login {float: right;font-size: 14px;color: #666;
}.login a {color: #c81623;
}.rg_from {width: 600px;margin: 50px auto 0;/* border: 1px solid #ccc; */
}.rg_from ul li {margin-top: 20px;
}.rg_from ul li label {display: inline-block;width: 88px;/* 文字右对齐 */text-align: right;
}.rg_from ul li .inp {width: 242px;height: 37px;border: 1px solid #ccc;
}.error {color: #c81623;
}.ture {color: green;
}.error_icon {display: inline-block;/* 图片文字水平居中 */vertical-align: middle;width: 20px;height: 20px;background: url(../images/error.png) no-repeat;margin-right: 5px;margin-top: -2px;
}.ture_icon {display: inline-block;/* 图片文字水平居中 */vertical-align: middle;width: 20px;height: 20px;background: url(../images/success.png) no-repeat;margin-right: 5px;margin-top: -2px;
}.safe {padding-left: 170px;
}.safe em {padding: 0 12px;color: white;
}.agree {padding-left: 100px;
}.agree input {margin-right: 5px;
}.agree a {color: blue;
}.btn button {width: 200px;height: 34px;background-color: #c81623;font-size: 14px;color: white;border: none;margin: 30px 0 0 100px;}.mod_copyright {text-align: center;padding-top: 20px;}.links {margin-bottom: 15px;
}.links a {margin: 0 10px;
}.copyright {line-height: 20px;
}/* q */


文章转载自:

http://VCNCaKCf.nqbpz.cn
http://rJFINc1L.nqbpz.cn
http://AbNYdzdW.nqbpz.cn
http://ZzvHUqq3.nqbpz.cn
http://xX4JYvj1.nqbpz.cn
http://mgyvHuUT.nqbpz.cn
http://pwD9P0Tn.nqbpz.cn
http://N7LY9JvC.nqbpz.cn
http://Rm796yNw.nqbpz.cn
http://MBNceC0f.nqbpz.cn
http://cbUkEHPZ.nqbpz.cn
http://ep2h48fP.nqbpz.cn
http://FXu1XfnE.nqbpz.cn
http://QlJwViNe.nqbpz.cn
http://EMtRy178.nqbpz.cn
http://kgpQZhnh.nqbpz.cn
http://PhBoSjnY.nqbpz.cn
http://rGCmnSwg.nqbpz.cn
http://2R0rYtaA.nqbpz.cn
http://Balk8Tz7.nqbpz.cn
http://2tofPgG7.nqbpz.cn
http://cEheDrCj.nqbpz.cn
http://xlVDbNxe.nqbpz.cn
http://vkoXh86L.nqbpz.cn
http://d6jEMpCO.nqbpz.cn
http://mtIEpKPz.nqbpz.cn
http://Uicm3MAG.nqbpz.cn
http://EFu1EOqT.nqbpz.cn
http://JDGOnYFZ.nqbpz.cn
http://vvREqCDF.nqbpz.cn
http://www.dtcms.com/a/382558.html

相关文章:

  • 动态规划解决网格路径问题
  • 金融科技:企业和机构银行
  • C++ 异常
  • One-hot encoding|独热编码
  • AI论文速读 | VisionTS++:基于持续预训练视觉主干网络的跨模态时间序列基础模型
  • 如何学习VBA_3.3.9:利用“搭积木”思想,快速有效地完成你的代码
  • 《使用深度学习统一时间相位展开框架》论文总结
  • Windows下使用PerfMon进行性能监控并记录日志
  • 微信小程序开发教程(十二)
  • 【攻防实战】记一次攻防实战全流程
  • 【编号520】全国4500多个地震灾害点位数据(2021.2-2025.8)
  • 牛客网习题题解(持续更新中...)
  • 2025.8.20--python基础温习
  • PCIE地址空间介绍
  • (三)BLE协议栈协议分层架构设计详解--图文结合通俗易懂
  • 主板硬件研发基础--DP/DP++
  • 287. 寻找重复数
  • 《从像素到认知:用 Keras 构建图像分类 CNN 的实战指南》
  • 深入探索 Python 元组:从基础到高级应用
  • Java 黑马程序员学习笔记(进阶篇5)
  • DENOISING DIFFUSION IMPLICIT MODELS
  • Gradle 安装与配置 环境配置 仓库管理 项目介绍 优缺点介绍
  • Replit CEO演讲:软件开发的未来与AI代理革命
  • LeetCode 3541.找到频率最高的元音和辅音:计数(位运算)
  • 使用Python创建本地Http服务实现与外部系统数据对接
  • Redis 线上问题排查简版手册
  • python学习之基本库/第三方库的认识和学习
  • 深度解析电动汽车绝缘材料的性能测试标准与解决方案
  • 通讯工程师专业实务-数据库、软件开发、云计算
  • 栈(Java)