CSS代码块分散不好上传。这里只贴图及上html代码
商品列表
商品详情
商品列表html代码
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./css/base.css">
<link rel="stylesheet" href="./font/iconfont.css">
<link rel="stylesheet" href="./css/index.css">
<link rel="stylesheet" href="./css/list.css">
<title>商品列表页面</title>
</head>
<body>
<!-- 头部 -->
<header class="flex-between container margin-auto">
<div>
<img src="./img/logo.png" alt="" class="width-80">
</div>
<div class="flex-center">
<a href="#" class="margin-top-5 font-15">登录</a>
<span class="margin-top-5">|</span>
<a href="#" class="margin-top-5 font-15">注册</a>
<div class="border-bottom-black-1 margin-left-10 padding-lr-5">
<input type="text" name="search" placeholder="热门搜索:细说php" id="search" class="border-none">
<label for="search"><a href=""><i class="iconfont icon-sousuo color120"></i></a></label>
</div>
<div class="margin-top-5">
<a href=""><i class="iconfont icon-yonghu color120 margin-left-15 font-18"></i></a>
<a href=""><i class="iconfont icon-erweima color120 margin-left-10 font-18"></i></a>
<a href=""><i class="iconfont icon-gouwuche1 color120 margin-left-10 font-18"></i></a>
</div>
</div>
</header>
<!-- 导航 -->
<nav class="margin-top-20">
<ul class="flex-center">
<li class="margin-lr-20 border-bottom-red-2">首页</li>
<li class="margin-lr-20 border-bottom-red-2">编程图书
<section class="margin-top-12">
<ul>
<li>细说PHP</li>
<li>细说PHP</li>
<li>细说PHP</li>
<li>细说PHP</li>
</ul>
</section>
</li>
<li class="margin-lr-20 border-bottom-red-2">算法图书</li>
<li class="margin-lr-20 border-bottom-red-2">AI图书</li>
<li class="margin-lr-20 border-bottom-red-2">人工智能</li>
</ul>
</nav>
<!-- 轮播图 -->
<section class="width-100 overflow-hiden banner">
<div class="banner-paused">
<a href="">
<img src="./img/001.jpeg" alt="">
</a>
<a href="">
<img src="./img/2.jpeg" alt="">
</a>
<a href="">
<img src="./img/3.jpeg" alt="">
</a>
</div>
</section>
<!-- 右侧功能 -->
<div class="sidebar">
<i class="iconfont icon-gouwuche1 color120 font-18 sidebar-bottom"></i>
<i class="iconfont icon-sousuo color120 font-18 sidebar-bottom"></i>
<i class="iconfont icon-yonghu color120 font-18 sidebar-bottom"></i>
<i class="iconfont icon-yonghu color120 font-18 sidebar-bottom"></i>
</div>
<!-- 导航 -->
<section class="daohang">
<span>首页</span>
<span>/</span>
<span>编程书籍</span>
<span>/</span>
<span>细说系列</span>
</section>
<!-- 标题 -->
<section class="list-content">
<div class="list-title">
细说系列
</div>
<div class="list-select">
<div class="list-select1">
<span>排序方式</span>
<i class="iconfont icon-htmal5icon03"></i>
</div>
<div class="list-select2">
<div>新品上市</div>
<div>销量从高到低</div>
<div>销量从低到高</div>
<div>价格从高到低</div>
<div>价格从低到高</div>
</div>
</div>
</section>
<!-- 商品 -->
<section class="list-goods">
<div class="list-goods-card">
<img src="./img/pro01.jpg" alt="">
<p style="font-size: 12px;">【细说】细说PHP</p>
<p class="list-price">¥159.00</p>
</div>
<div class="list-goods-card">
<img src="./img/pro01.jpg" alt="">
<p style="font-size: 12px;">【细说】细说PHP</p>
<p class="list-price">¥159.00</p>
</div>
<div class="list-goods-card">
<img src="./img/pro01.jpg" alt="">
<p style="font-size: 12px;">【细说】细说PHP</p>
<p class="list-price">¥159.00</p>
</div>
<div class="list-goods-card">
<img src="./img/pro01.jpg" alt="">
<p style="font-size: 12px;">【细说】细说PHP</p>
<p class="list-price">¥159.00</p>
</div>
</section>
<!-- 底部 -->
<footer>
<section class="shouhou">
<div class="shouhou-card">
<img src="./img/foot1.png" alt="">
<p class="font-14">7天无理由退货</p>
</div>
<div class="shouhou-card">
<img src="./img/foot2.png" alt="">
<p class="font-14">15天免费换货</p>
</div>
<div class="shouhou-card">
<img src="./img/foot3.png" alt="">
<p class="font-14">满599包邮</p>
</div>
<div class="shouhou-card4">
<img src="./img/foot4.png" alt="">
<p class="font-14">手机特色服务</p>
</div>
</section>
<section class="footer">
<p>最家家居©2013-2017公司版权所有 京ICP备080100-44备0000111000号</p>
<p>违法和不良信息举报电话:400-800-8200,本网站所列数据,除特殊说明,所有数据均出自我司实验室测试</p>
</section>
</footer>
</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">
<link rel="stylesheet" href="./css/base.css">
<link rel="stylesheet" href="./font/iconfont.css">
<link rel="stylesheet" href="./css/index.css">
<link rel="stylesheet" href="./css/list.css">
<link rel="stylesheet" href="./css/info.css">
<title>商品详情页面</title>
</head>
<body>
<!-- 头部 -->
<header class="flex-between container margin-auto">
<div>
<img src="./img/logo.png" alt="" class="width-80">
</div>
<div class="flex-center">
<a href="#" class="margin-top-5 font-15">登录</a>
<span class="margin-top-5">|</span>
<a href="#" class="margin-top-5 font-15">注册</a>
<div class="border-bottom-black-1 margin-left-10 padding-lr-5">
<input type="text" name="search" placeholder="热门搜索:细说php" id="search" class="border-none">
<label for="search"><a href=""><i class="iconfont icon-sousuo color120"></i></a></label>
</div>
<div class="margin-top-5">
<a href=""><i class="iconfont icon-yonghu color120 margin-left-15 font-18"></i></a>
<a href=""><i class="iconfont icon-erweima color120 margin-left-10 font-18"></i></a>
<a href=""><i class="iconfont icon-gouwuche1 color120 margin-left-10 font-18"></i></a>
</div>
</div>
</header>
<!-- 导航 -->
<nav class="margin-top-20">
<ul class="flex-center">
<li class="margin-lr-20 border-bottom-red-2">首页</li>
<li class="margin-lr-20 border-bottom-red-2">编程图书
<section class="margin-top-12">
<ul>
<li>细说PHP</li>
<li>细说PHP</li>
<li>细说PHP</li>
<li>细说PHP</li>
</ul>
</section>
</li>
<li class="margin-lr-20 border-bottom-red-2">算法图书</li>
<li class="margin-lr-20 border-bottom-red-2">AI图书</li>
<li class="margin-lr-20 border-bottom-red-2">人工智能</li>
</ul>
</nav>
<!-- 轮播图 -->
<section class="width-100 overflow-hiden banner">
<div class="banner-paused">
<a href="">
<img src="./img/001.jpeg" alt="">
</a>
<a href="">
<img src="./img/2.jpeg" alt="">
</a>
<a href="">
<img src="./img/3.jpeg" alt="">
</a>
</div>
</section>
<!-- 右侧功能 -->
<div class="sidebar">
<i class="iconfont icon-gouwuche1 color120 font-18 sidebar-bottom"></i>
<i class="iconfont icon-sousuo color120 font-18 sidebar-bottom"></i>
<i class="iconfont icon-yonghu color120 font-18 sidebar-bottom"></i>
<i class="iconfont icon-yonghu color120 font-18 sidebar-bottom"></i>
</div>
<!-- 导航 -->
<section class="daohang">
<span>首页</span>
<span>/</span>
<span>编程书籍</span>
<span>/</span>
<span>细说系列</span>
<span>/</span>
<span>细说php</span>
</section>
<!-- 大图及购买 -->
<section class="flex-between width-80 margin-auto margin-top-40">
<div class="width-50">
<div>
<img src="./img/proDet01_big.jpg" alt="" >
</div>
<div class="flex-start">
<img src="./img/proDet01.jpg" alt="">
<img src="./img/proDet01.jpg" alt="">
<img src="./img/proDet01.jpg" alt="">
<img src="./img/proDet01.jpg" alt="">
</div>
</div>
<div class="width-50">
<div class="border-bottom-black-1">
<h2>[细说] 细说PHP</h2>
<p class="font-12 color-8c8c8c margin-top-20">【破损补寄】【适合放室内、卧室、书房、餐桌、办公室、客厅、电视柜等地方】【无理由退换货】【包邮】【白色现代简约花瓶】</p>
<span class="color120 font-weight-bold font-16 margin-bottom-40 block margin-top-20">¥ 159.00</span>
</div>
<div class="border-bottom-black-1">
<p class="margin-top-20">颜色分类</p>
<div class="flex-start margin-bottom-20 margin-top-12">
<img src="./img/proDet01.jpg" alt="" class="img-color">
<img src="./img/proDet01.jpg" alt="" class="img-color margin-left-15">
<img src="./img/proDet01.jpg" alt="" class="img-color margin-left-15">
<img src="./img/proDet01.jpg" alt="" class="img-color margin-left-15">
</div>
<p>
数量 库存 <span class="color120">2000</span> 件
</p>
<div class="fuhao margin-bottom-40 margin-top-20">
<span class="mouse-point">-</span>
<input type="text" value="1" class="book-number">
<span class="mouse-point">+</span>
</div>
</div>
<div class="margin-top-40 flex-around">
<button class="goumai">立即购买</button>
<button class="gouwuche">加入购物车</button>
</div>
</div>
</section>
<!-- 商品详情 -->
<section class="width-80 margin-auto margin-top-40 flex-between">
<div style="width: 950px;">
<nav class="border-top-ccc-1 padding-10">
<a href="" class="font-12 font-weight-bold border-bottom-120 padding-10">商品详情</a>
<a href="" class="margin-left-15 font-12 padding-10">所有评价</a>
</nav>
<div class="border-top-ccc-1">
<img src="./img/det01.jpg" alt="">
<img src="./img/det01.jpg" alt="">
<img src="./img/det01.jpg" alt="">
<img src="./img/det01.jpg" alt="">
<img src="./img/det01.jpg" alt="">
</div>
</div>
<div class="tuijian">
<p class="tuijian-text">为您推荐</p>
<div class="padding-lr-10 margin-top-12">
<img src="./img/see01.jpg" alt="">
<p>【细说】细说PHP</p>
<p class="margin-top-5">¥158.00</p>
</div>
<div class="padding-lr-10 margin-top-12">
<img src="./img/see01.jpg" alt="">
<p>【细说】细说PHP</p>
<p class="margin-top-5">¥158.00</p>
</div>
<div class="padding-lr-10 margin-top-12">
<img src="./img/see01.jpg" alt="">
<p>【细说】细说PHP</p>
<p class="margin-top-5">¥158.00</p>
</div>
<div class="padding-lr-10 margin-top-12 margin-bottom-20">
<img src="./img/see01.jpg" alt="">
<p>【细说】细说PHP</p>
<p class="margin-top-5">¥158.00</p>
</div>
</div>
</section>
<!-- 猜你喜欢 -->
<section class="xihuan">
<p class="font-18">猜你喜欢</p>
<div class="flex-around margin-bottom-40">
<div class="jiantou"><</div>
<div>
<img src="./img/like04.jpg" alt="">
<p class="font-14 margin-top-20">【细说】细说PHP</p>
<p class="font-14 margin-top-12 color120">¥158.00</p>
</div>
<div>
<img src="./img/like04.jpg" alt="">
<p class="font-14 margin-top-20">【细说】细说PHP</p>
<p class="font-14 margin-top-12 color120">¥158.00</p>
</div>
<div>
<img src="./img/like04.jpg" alt="">
<p class="font-14 margin-top-20">【细说】细说PHP</p>
<p class="font-14 margin-top-12 color120">¥158.00</p>
</div>
<div>
<img src="./img/like04.jpg" alt="">
<p class="font-14 margin-top-20">【细说】细说PHP</p>
<p class="font-14 margin-top-12 color120">¥158.00</p>
</div>
<div class="jiantou">></div>
</div>
</section>
<!-- 底部 -->
<footer>
<section class="shouhou">
<div class="shouhou-card">
<img src="./img/foot1.png" alt="">
<p class="font-14">7天无理由退货</p>
</div>
<div class="shouhou-card">
<img src="./img/foot2.png" alt="">
<p class="font-14">15天免费换货</p>
</div>
<div class="shouhou-card">
<img src="./img/foot3.png" alt="">
<p class="font-14">满599包邮</p>
</div>
<div class="shouhou-card4">
<img src="./img/foot4.png" alt="">
<p class="font-14">手机特色服务</p>
</div>
</section>
<section class="footer">
<p>最家家居©2013-2017公司版权所有 京ICP备080100-44备0000111000号</p>
<p>违法和不良信息举报电话:400-800-8200,本网站所列数据,除特殊说明,所有数据均出自我司实验室测试</p>
</section>
</footer>
</body>
</html>