本教程案例在线演示

有路网PC端
有路网移动端

免费配套视频教程

免费配套视频教程

教程配套源码资源

教程配套源码资源

制作有路网首页

有路网首页布局框架制作

划分区域,确定div
测量各个区域的宽高
使用Flexbox对网页进行布局

youlu-whole.css

.nav{height: 30px;background-color: #f4f4f4;
}.search-bar{height: 134px;background-color: green;
}.cate-nav{height: 38px;background-color: red;
}.main{width: 1200px;height: 600px;margin: 0 auto;background-color: pink;display: flex;
}.index-sort{width: 210px;height: 970px;background-color: blue;
}
.right{width: 990px;height: 970px;background-color: white;
}.help{height: 30px;background-color: pink;
}.bottom-info{display: flex;
}.left{width:750px;height: 900px;background-color: orange;margin-left: 10px;
}.lunbotu{height: 340px;background-color: red;
}
.book-recommend{height: 600px;background-color: green;
}.main-right{width: 220px;height: 900px;background-color: blue;margin-left: auto;
}

youlu-whole.html

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Document</title><link rel="stylesheet" href="reset.css"><link rel="stylesheet" href="youlu-whole.css">
</head>
<body><div class="wrapper"><div class="nav"></div><div class="search-bar"></div><div class="cate-nav"></div><div class="main"><div class="index-sort"></div><div class="right"><div class="help"></div><div class="bottom-info"><div class="left"><div class="lunbotu"></div><div class="book-recommend"></div></div><div class="main-right"></div></div></div></div></div>
</body>
</html>

整合顶部导航

    <div class="nav"><div class="topBar"><div class="topBarL"><img src="img/welcome.jpg" alt="" /><span>您好,欢迎光临有路网!</span></div><ul class="topBarR"><li><a href="" class="login">请登陆</a>&nbsp;&nbsp;<a href="" class="regist-link">免费注册</a></li><li><a href="" target="_blank">我的有路</a><b></b></li><li><a href="" target="_blank">我要开店</a></li><li><a href="" target="_blank">团购批发</a></li><li><a href="">客服服务</a><b></b></li><li><a href="" target="_blank" class="menu-btn"><img src="img/ico_phone.gif" />手机有路</a></li><li class="last"><a href="" class="menu-btn">微信公众号</a></li></ul></div></div>
         /* 设置导航栏整体宽高 */.topBar {line-height: 29px;width: 1200px;height: 29px;margin: 0 auto;background-color: #f4f4f4;}.topBar .topBarL {display: inline-block;margin-right: 480px;}.topBarL span {font-size: 12px;color: #636363;}.topBar .topBarR {display: inline-block;}.topBar .topBarR li {display: inline-block;}.topBar .topBarR li a {line-height: 20px;padding: 0 8px;border-right: 1px solid #ddd;}.topBar .topBarR .login {color: #f51400;}.topBar .topBarR .last a {border: none;}

整合搜索横栏

    <div class="search-bar"><div class="logo"><img src="img/logo.jpg" /></div><div class="search-block"><div class="search"><form action="#"><input type="text" class="input" placeholder="书名" /><inputtype="submit"value="搜索"class="btn"/></form></div><div class="hot-search"><ul><li>热门搜索:</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="cart"><div><a href="#">网站购物车<span>3</span>本</a></div><div><a href="#">店铺购物车<span>0</span>本</a></div></div></div>
        /* .search-bar{height: 134px;background-color: green;} *//* 搜索横栏 */.search-bar {width: 1200px;margin: 40px auto 0;display: flex;}.search-bar .logo {margin-right: 64px;}.search-bar .search {width: 509px;margin: 0 auto;height: 40px;}.search-bar .search .input {width: 400px;height: 36px;border: 2px solid red;font-size: 20px;}.search-bar .search .btn {vertical-align: top;height: 42px;width: 100px;margin-left: -3px;border: 0px solid black;background-color: red;color: white;font-size: 18px;font-weight: bold;letter-spacing: 6px;cursor: pointer;}.search-bar .hot-search li {display: inline-block;font-size: 14px;line-height: 32px;font-weight: bold;padding: 0px 2px;}.search-bar .hot-search li a {color: gray;}.search-bar .hot-search li a:hover {text-decoration: underline;color: orange;}.search-bar .cart {background-image: url("img/cart.jpg");background-repeat: no-repeat;padding-left: 44px;line-height: 20px;margin-left: auto;}.search-bar .cart a {color: black;}.search-bar .cart a:hover {text-decoration: underline;}.search-bar .cart span {color: red;font-weight: bold;}

整合中间分类导航

    <div class="cate-nav"><div class="red-nav"><ul><li class="first"><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="" target="_blank">电子书</a></li></ul></div></div>
 /* 中间分类导航 */.red-nav{height: 38px;width: 1200px;margin: 0 auto;background-color: #D80000;}.red-nav ul{display: flex;}.red-nav li{flex:0 0 auto;line-height: 38px;font-size: 16px;font-weight: bold;padding: 0 25px;}.red-nav li a{color: white;}.red-nav li:hover{background-color: #C90000;}.red-nav .first{background-color: #C90000;padding-left: 20px;padding-right: 100px;}

整合左侧图书分类

    <div class="index-sort"><ul class="cat-menu sort-menu-bd"><li class="mainCate"><h2>经济管理</h2><div class="min-sort"><a href="" target="_blank">市场营销</a><a href="" target="_blank">经济学理论</a><a href="" target="_blank">国际贸易</a><a href="" target="_blank">物流管理</a><a href="" target="_blank">管理学原理</a><a href="" target="_blank">财务管理</a></div></li><li class="mainCate"><h2>文学艺术</h2><div class="min-sort"><a href="" target="_blank">设计</a><a href="" target="_blank">音乐</a><a href="" target="_blank">青春文学</a><a href="" target="_blank">绘画</a><a href="" target="_blank">人物传记</a><a href="" target="_blank">外国文学</a></div></li><li class="mainCate"><h2>人文社科</h2><div class="min-sort"><a href="" target="_blank">数学</a><a href="" target="_blank">英语教材</a><a href="" target="_blank">化学</a><a href="" target="_blank">日语</a><a href="" target="_blank">生物科学</a><a href="" target="_blank">专业英语</a></div></li><li class="mainCate"><h2>科学技术</h2><div class="min-sort"><a href="" target="_blank">语言与编程</a><a href="" target="_blank">电子通信</a><a href="" target="_blank">电工电子</a><a href="" target="_blank">数据库</a><a href="" target="_blank">建筑工程</a><a href="" target="_blank">土木工程</a></div></li><li class="mainCate"><h2>生活休闲</h2><div class="min-sort"><a href="" target="_blank">家庭保健</a><a href="" target="_blank">美食烹饪</a><a href="" target="_blank">导游必备</a><a href="" target="_blank">地理学理论</a><a href="" target="_blank">动漫卡通</a><a href="" target="_blank">球类</a></div></li><li class="mainCate"><h2>教育考试</h2><div class="min-sort"><a href="" target="_blank">教学理论</a><a href="" target="_blank">自考</a><a href="" target="_blank">研究生考试</a><a href="" target="_blank">考研英语</a><a href="" target="_blank">公务员考试</a><a href="" target="_blank">初高中用书</a></div></li></ul><h2 class="yl-all-index"><a href="" target="_blank">浏览所有图书分类</a></h2><div class="book-ad-first"><a href="" target="_blank"><img src="img/haoshu.jpg" alt="新书推荐"/></a></div></div>
  /* 左侧图书分类 *//* 整体设置 */.index-sort {border: 1px solid #dcdcdc;border-top: 0;background-color: #fff;width: 208px;}/* 每一个大分类li整体设置 */.cat-menu li {border-bottom: 1px dotted #dcdcdc;padding: 0 10px 0 26px;}/* 每一个大分类li标题设置 */.cat-menu li h2 {font-size: 14px;height: 30px;line-height: 30px;padding-left: 8px;}/* 每一个大分类下的小分类设置 */.cat-menu li .min-sort a {line-height: 22px;color: #696969;height: 22px;font-size: 12px;}.yl-all-index {padding: 10px;height: 20px;line-height: 20px;}.yl-all-index a {font-size: 14px;}

整合help导航

          <div class="help"><a href="" target="_blank">如何购买</a>|<a href="" target="_blank">如何支付</a>|<a href="" target="_blank">旧书缺货怎么办</a>|<ahref=""target="_blank">配送方式与配送费</a>|<a href="" target="_blank">普通会员与VIP会员</a>|<ahref=""target="_blank">有路积分说明</a>|<a href="" target="_blank">有路礼券说明</a>|<ahref=""target="_blank">账户余额说明</a>|<a href="" target="_blank">退款退货说明</a>|<ahref=""target="_blank">电子书购买说明</a></div>
        /* .help{height: 30px;background-color: pink;} */.help {padding-left: 10px;height: 30px;line-height: 30px;}.help a {margin: 4px;}

整合轮播图

<div class="lunbotu"><img src="img/dazhuanpan.jpg"><ul><li>1</li><li>2</li><li>3</li></ul>
</div>
   .lunbotu{/*border: 1px solid blue;*/width: 750px;position: relative;}.lunbotu ul{position: absolute;right: 12px;bottom: 20px;/*border: 1px solid orange;*/}.lunbotu ul li{color: white;display: inline-block;width: 20px;height: 20px;background-color: gray;border-radius: 50%;text-align: center;line-height: 20px;margin: 0 5px;}

整合推荐图书

    <div class="book-recommend"><div class="header"><h2>推荐图书</h2><div><span>1</span>/4</div></div><div class="content"><ul><li><img src="img/狼图腾.jpg" /><div><a href="#">狼图腾(修订版)</a></div><div class="author">姜戎</div><div class="price"><span class="discount">¥15.90</span><span class="origin-price">¥39.80</span></div></li><li><img src="img/文化苦旅.jpg" /><div><a href="#">狼图腾(修订版)</a></div><div class="author">姜戎</div><div class="price"><span class="discount">¥15.90</span><span class="origin-price">¥39.80</span></div></li><li><img src="img/平凡的世界.jpg" /><div><a href="#">狼图腾(修订版)</a></div><div class="author">姜戎</div><div class="price"><span class="discount">¥15.90</span><span class="origin-price">¥39.80</span></div></li><li><img src="img/偷影子的人.jpg" /><div><a href="#">狼图腾(修订版)</a></div><div class="author">姜戎</div><div class="price"><span class="discount">¥15.90</span><span class="origin-price">¥39.80</span></div></li><li><img src="img/狼图腾.jpg" /><div><a href="#">狼图腾(修订版)5</a></div><div class="author">姜戎</div><div class="price"><span class="discount">¥15.90</span><span class="origin-price">¥39.80</span></div></li><li><img src="img/狼图腾.jpg" /><div><a href="#">狼图腾(修订版)6</a></div><div class="author">姜戎</div><div class="price"><span class="discount">¥15.90</span><span class="origin-price">¥39.80</span></div></li><li><img src="img/蔡永康.jpg" /><div><a href="#">狼图腾(修订版)7</a></div><div class="author">姜戎</div><div class="price"><span class="discount">¥15.90</span><span class="origin-price">¥39.80</span></div></li><li><img src="img/狼图腾.jpg" /><div><a href="#">狼图腾(修订版)</a></div><div class="author">姜戎</div><div class="price"><span class="discount">¥15.90</span><span class="origin-price">¥39.80</span></div></li></ul></div></div>
  .nav{height: 29px;background-color: #f4f4f4;}/* .search-bar{height: 134px;background-color: green;} */.cate-nav{height: 38px;background-color: #D80000;}.main{/* height: 600px; */width: 1200px;margin: 0 auto;display: flex;}.index-sort{width: 210px;/* height: 970px; */background-color: blue;}.right{width: 990px;height: 300px;}/* .help{height: 30px;background-color: pink;} */.bottom-info{display: flex;}.left{width: 750px;/* height: 500px; *//* background-color: #6dacf4; */margin-left: 10px;}/* .lunbotu{height: 340px;background-color: red;} *//* .book-recommend{height: 600px;background-color: green;} */
       .book-recommend {width: 750px;margin: 0 auto;}.book-recommend .header {border-bottom: 1px solid gray;background-image: url("img/laba.jpg");background-repeat: no-repeat;background-position: 0px 8px;display: flex;}.book-recommend .header div {padding-top: 6px;padding-right: 6px;font-size: 16px;}.book-recommend .header div span {color: red;}.book-recommend .header h2 {margin-right: auto;font-size: 22px;font-weight: bold;padding-left: 20px;padding-bottom: 8px;}.content {padding-top: 10px;}.content div {text-align: left;padding-left: 30px;line-height: 32px;}.content ul {display: flex;flex-wrap: wrap;}.content li {width: 187px;text-align: center;}.content .price {margin-top: -10px;margin-bottom: 20px;font-size: 14px;}.content .price .discount {color: red;font-weight: bold;margin-right: 6px;}.content .price .origin-price {color: gray;text-decoration: line-through;}.content .author {color: gray;}.content li a {color: black;}.content li a:hover {color: orange;text-decoration: underline;}.content li img {max-width: 160px;height: 160px;}

整合右侧上部黑板报

    <div class="black-board"><div class="book-con"><div class="hd"><h2>黑板报</h2></div><div class="bd"><ul><li><a href="" target="_blank" title="双十一积分兑好礼,团购更实惠!">双十一积分兑好礼</a></li><li><a href="" target="_blank" title="有路网国庆中秋放假通知!">有路网国庆中秋放假通知!</a></li><li><a href="" target="_blank" title="积分大抽奖,好礼送不停">积分大抽奖,好礼送不停</a></li><li><a href="" target="_blank" title="有路网开学红包第五季">有路网开学红包第五季</a></li></ul></div></div><div class="book-con"><div class="hd"><h2>购物指南</h2></div><div class="bd"><ul><li class="hot"><a href="" target="_blank">支付宝担保交易,安全快捷</a></li><li><a href="" target="_blank">保证24小时之内发货</a></li><li><a href="" target="_blank">赠送积分,积分可用于支付</a></li><li><a href="" target="_blank">收货后7天内可以无理由退货</a></li><li><a href="" target="_blank">提供电子商务小包、EMS、快递</a></li><li class="hot"><a href="" target="_blank">配送造成的所有损失由我们承担</a></li><li><a href="" target="_blank">提供免费短信提醒服务</a></li></ul></div></div><div class="book-ad-con"><img src="img/zhinan.jpg"alt="保证正版、保证低价、24小时发货、无理由退货" " /></div></div>
        .main-right{width: 220px;/* height: 940px; *//* background-color: blue; */margin-left: auto;}/* 设置整体宽度 */.black-board {width: 220px;}/* 黑板报和购物指南块整体设置 */.black-board .book-con {border: 1px solid #eaeaea;padding: 6px 10px;}/* 黑板报和购物指南头部设置 */.black-board .hd {height: 28px;font-size: 12px;color: #000;font-weight: bold;}.black-board .hd h2 {font-size: 16px;}/* 黑板报和购物指南体部设置 */.black-board .bd {padding: 0 5px 0 15px;}/* 列表项设置 */.black-board .bd ul li {height: 22px;line-height: 22px;padding-left: 7px;}/* 最下方图片距离顶部加些margin */.black-board .book-ad-con {margin-top: 10px;}

整合右侧下部近期热销榜

   <div class="hot"><h2>近期热销榜</h2><ul><li><div class="book1"><span class="red">1</span>如果蜗牛有爱情(上下</div><div class="book2"><div><span class="red">1</span></div><div><img src="img/萤火虫小巷.jpg" /></div><div><p class="title">萤火虫小巷</p><p class="discount-price">¥14.40</p><p class="old-price">¥36.00</p></div></div></li><li><div class="book1"><span class="red">1</span>如果蜗牛有爱情(上下</div><div class="book2"><div><span class="red">1</span></div><div><img src="img/萤火虫小巷.jpg" /></div><div><p class="title">萤火虫小巷</p><p class="discount-price">¥14.40</p><p class="old-price">¥36.00</p></div></div></li><li><div class="book1"><span class="red">1</span>如果蜗牛有爱情(上下</div><div class="book2"><div><span class="red">1</span></div><div><img src="img/萤火虫小巷.jpg" /></div><div><p class="title">萤火虫小巷</p><p class="discount-price">¥14.40</p><p class="old-price">¥36.00</p></div></div></li><li><div class="book1"><span>4</span>如果蜗牛有爱情(上下</div><div class="book2"><div><span class="nored">4</span></div><div><img src="img/萤火虫小巷.jpg" /></div><div><p class="title">萤火虫小巷</p><p class="discount-price">¥14.40</p><p class="old-price">¥36.00</p></div></div></li><li><div class="book1"><span>4</span>如果蜗牛有爱情(上下</div><div class="book2"><div><span class="nored">1</span></div><div><img src="img/萤火虫小巷.jpg" /></div><div><p class="title">萤火虫小巷</p><p class="discount-price">¥14.40</p><p class="old-price">¥36.00</p></div></div></li><li><div class="book1"><span>4</span>如果蜗牛有爱情(上下</div><div class="book2"><div><span class="nored">1</span></div><div><img src="img/萤火虫小巷.jpg" /></div><div><p class="title">萤火虫小巷</p><p class="discount-price">¥14.40</p><p class="old-price">¥36.00</p></div></div></li><li><div class="book1"><span>4</span>如果蜗牛有爱情(上下</div><div class="book2"><div><span class="nored">1</span></div><div><img src="img/萤火虫小巷.jpg" /></div><div><p class="title">萤火虫小巷</p><p class="discount-price">¥14.40</p><p class="old-price">¥36.00</p></div></div></li><li><div class="book1"><span>4</span>如果蜗牛有爱情(上下</div><div class="book2"><div><span class="nored">1</span></div><div><img src="img/萤火虫小巷.jpg" /></div><div><p class="title">萤火虫小巷</p><p class="discount-price">¥14.40</p><p class="old-price">¥36.00</p></div></div></li><li><div class="book1"><span>4</span>如果蜗牛有爱情(上下</div><div class="book2"><div><span class="nored">1</span></div><div><img src="img/萤火虫小巷.jpg" /></div><div><p class="title">萤火虫小巷</p><p class="discount-price">¥14.40</p><p class="old-price">¥36.00</p></div></div></li><li><div class="book1"><span>4</span>如果蜗牛有爱情(上下</div><div class="book2"><div><span class="nored">1</span></div><div><img src="img/萤火虫小巷.jpg" /></div><div><p class="title">萤火虫小巷</p><p class="discount-price">¥14.40</p><p class="old-price">¥36.00</p></div></div></li></ul></div>
    .hot {width: 220px;}.hot h2 {font-size: 16px;line-height: 40px;padding-left: 34px;}.hot ul {border: 1px solid gray;font-size: 14px;}.hot li .book1 {line-height: 44px;border-bottom: 1px dashed gray;padding-left: 14px;}.hot li span {margin-right: 6px;font-weight: bold;}.hot .red {color: red;}.hot .book2 {display: none;}.hot .book2 {height: 102px;border-bottom: 1px dashed gray;}.hot .book2 div {margin-top: 6px;}.hot .book2 img {width: 76px;}.hot .book2 .nored {margin-left: 10px;display: inline-block;margin-top: 6px;}.hot .book2 .red {margin-left: 10px;display: inline-block;margin-top: 6px;}.hot .book2 .title {font-size: 14px;margin-bottom: 22px;}.hot .book2 .discount-price {font-size: 16px;font-weight: bold;color: red;}.hot .book2 .old-price {font-size: 14px;color: gray;text-decoration: line-through;}.hot li:hover .book1 {display: none;}.hot li:hover .book2 {display: flex;}

有路网首页pc端完整代码

<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8" /><title>Title</title><link href="reset.css" rel="stylesheet" /><style>.nav {height: 29px;background-color: #f4f4f4;}/* .search-bar{height: 134px;background-color: green;} */.cate-nav {height: 38px;background-color: #d80000;}.main {/* height: 600px; */width: 1200px;margin: 0 auto;display: flex;}.index-sort {width: 210px;/* height: 970px; */background-color: blue;}.right {width: 990px;height: 300px;}/* .help{height: 30px;background-color: pink;} */.bottom-info {display: flex;}.left {width: 750px;/* height: 500px; *//* background-color: #6dacf4; */margin-left: 10px;}/* .lunbotu{height: 340px;background-color: red;} *//* .book-recommend{height: 600px;background-color: green;} */.main-right {width: 220px;/* height: 940px; *//* background-color: blue; */margin-left: auto;}/* 设置导航栏整体宽高 */.topBar {line-height: 29px;width: 1200px;height: 29px;margin: 0 auto;background-color: #f4f4f4;}.topBar .topBarL {display: inline-block;margin-right: 480px;}.topBarL span {font-size: 12px;color: #636363;}.topBar .topBarR {display: inline-block;}.topBar .topBarR li {display: inline-block;}.topBar .topBarR li a {line-height: 20px;padding: 0 8px;border-right: 1px solid #ddd;}.topBar .topBarR .login {color: #f51400;}.topBar .topBarR .last a {border: none;}/* 搜索横栏 */.search-bar {width: 1200px;margin: 40px auto 0;display: flex;}.search-bar .logo {margin-right: 64px;}.search-bar .search {width: 509px;margin: 0 auto;height: 40px;}.search-bar .search .input {width: 400px;height: 36px;border: 2px solid red;font-size: 20px;}.search-bar .search .btn {vertical-align: top;height: 42px;width: 100px;margin-left: -3px;border: 0px solid black;background-color: red;color: white;font-size: 18px;font-weight: bold;letter-spacing: 6px;cursor: pointer;}.search-bar .hot-search li {display: inline-block;font-size: 14px;line-height: 32px;font-weight: bold;padding: 0px 2px;}.search-bar .hot-search li a {color: gray;}.search-bar .hot-search li a:hover {text-decoration: underline;color: orange;}.search-bar .cart {background-image: url("img/cart.jpg");background-repeat: no-repeat;padding-left: 44px;line-height: 20px;margin-left: auto;}.search-bar .cart a {color: black;}.search-bar .cart a:hover {text-decoration: underline;}.search-bar .cart span {color: red;font-weight: bold;}/* 中间分类导航 */.red-nav {height: 38px;width: 1200px;margin: 0 auto;background-color: #d80000;}.red-nav ul {display: flex;}.red-nav li {flex: 0 0 auto;line-height: 38px;font-size: 16px;font-weight: bold;padding: 0 25px;}.red-nav li a {color: white;}.red-nav li:hover {background-color: #c90000;}.red-nav .first {background-color: #c90000;padding-left: 20px;padding-right: 100px;}/* 左侧图书分类 *//* 整体设置 */.index-sort {border: 1px solid #dcdcdc;border-top: 0;background-color: #fff;width: 208px;}/* 每一个大分类li整体设置 */.cat-menu li {border-bottom: 1px dotted #dcdcdc;padding: 0 10px 0 26px;}/* 每一个大分类li标题设置 */.cat-menu li h2 {font-size: 14px;height: 30px;line-height: 30px;padding-left: 8px;}/* 每一个大分类下的小分类设置 */.cat-menu li .min-sort a {line-height: 22px;color: #696969;height: 22px;font-size: 12px;}.yl-all-index {padding: 10px;height: 20px;line-height: 20px;}.yl-all-index a {font-size: 14px;}.help {padding-left: 10px;height: 30px;line-height: 30px;}.help a {margin: 4px;}.lunbotu {/*border: 1px solid blue;*/width: 750px;position: relative;}.lunbotu ul {position: absolute;right: 12px;bottom: 20px;/*border: 1px solid orange;*/}.lunbotu ul li {color: white;display: inline-block;width: 20px;height: 20px;background-color: gray;border-radius: 50%;text-align: center;line-height: 20px;margin: 0 5px;}.book-recommend {width: 750px;margin: 0 auto;}.book-recommend .header {border-bottom: 1px solid gray;background-image: url("img/laba.jpg");background-repeat: no-repeat;background-position: 0px 8px;display: flex;}.book-recommend .header div {padding-top: 6px;padding-right: 6px;font-size: 16px;}.book-recommend .header div span {color: red;}.book-recommend .header h2 {margin-right: auto;font-size: 22px;font-weight: bold;padding-left: 20px;padding-bottom: 8px;}.content {padding-top: 10px;}.content div {text-align: left;padding-left: 30px;line-height: 32px;}.content ul {display: flex;flex-wrap: wrap;}.content li {width: 187px;text-align: center;}.content .price {margin-top: -10px;margin-bottom: 20px;font-size: 14px;}.content .price .discount {color: red;font-weight: bold;margin-right: 6px;}.content .price .origin-price {color: gray;text-decoration: line-through;}.content .author {color: gray;}.content li a {color: black;}.content li a:hover {color: orange;text-decoration: underline;}.content li img {max-width: 160px;height: 160px;}/* 设置整体宽度 */.black-board {width: 220px;}/* 黑板报和购物指南块整体设置 */.black-board .book-con {border: 1px solid #eaeaea;padding: 6px 10px;}/* 黑板报和购物指南头部设置 */.black-board .hd {height: 28px;font-size: 12px;color: #000;font-weight: bold;}.black-board .hd h2 {font-size: 16px;}/* 黑板报和购物指南体部设置 */.black-board .bd {padding: 0 5px 0 15px;}/* 列表项设置 */.black-board .bd ul li {height: 22px;line-height: 22px;padding-left: 7px;}/* 最下方图片距离顶部加些margin */.black-board .book-ad-con {margin-top: 10px;}.hot {width: 220px;}.hot h2 {font-size: 16px;line-height: 40px;padding-left: 34px;}.hot ul {border: 1px solid gray;font-size: 14px;}.hot li .book1 {line-height: 44px;border-bottom: 1px dashed gray;padding-left: 14px;}.hot li span {margin-right: 6px;font-weight: bold;}.hot .red {color: red;}.hot .book2 {display: none;}.hot .book2 {height: 102px;border-bottom: 1px dashed gray;}.hot .book2 div {margin-top: 6px;}.hot .book2 img {width: 76px;}.hot .book2 .nored {margin-left: 10px;display: inline-block;margin-top: 6px;}.hot .book2 .red {margin-left: 10px;display: inline-block;margin-top: 6px;}.hot .book2 .title {font-size: 14px;margin-bottom: 22px;}.hot .book2 .discount-price {font-size: 16px;font-weight: bold;color: red;}.hot .book2 .old-price {font-size: 14px;color: gray;text-decoration: line-through;}.hot li:hover .book1 {display: none;}.hot li:hover .book2 {display: flex;}</style></head><body><div class="wrapper"><div class="nav"><div class="topBar"><div class="topBarL"><img src="img/welcome.jpg" alt="" /><span>您好,欢迎光临有路网!</span></div><ul class="topBarR"><li><a href="" class="login">请登陆</a>&nbsp;&nbsp;<a href="" class="regist-link">免费注册</a></li><li><a href="" target="_blank">我的有路</a><b></b></li><li><a href="" target="_blank">我要开店</a></li><li><a href="" target="_blank">团购批发</a></li><li><a href="">客服服务</a><b></b></li><li><a href="" target="_blank" class="menu-btn"><img src="img/ico_phone.gif" />手机有路</a></li><li class="last"><a href="" class="menu-btn">微信公众号</a></li></ul></div></div><div class="search-bar"><div class="logo"><img src="img/logo.jpg" /></div><div class="search-block"><div class="search"><form action="#"><input type="text" class="input" placeholder="书名" /><inputtype="submit"value="搜索"class="btn"/></form></div><div class="hot-search"><ul><li>热门搜索:</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="cart"><div><a href="#">网站购物车<span>3</span>本</a></div><div><a href="#">店铺购物车<span>0</span>本</a></div></div></div><div class="cate-nav"><div class="red-nav"><ul><li class="first"><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="" target="_blank">电子书</a></li></ul></div></div><div class="main"><div class="index-sort"><ul class="cat-menu sort-menu-bd"><li class="mainCate"><h2>经济管理</h2><div class="min-sort"><a href="" target="_blank">市场营销</a><a href="" target="_blank">经济学理论</a><a href="" target="_blank">国际贸易</a><a href="" target="_blank">物流管理</a><a href="" target="_blank">管理学原理</a><a href="" target="_blank">财务管理</a></div></li><li class="mainCate"><h2>文学艺术</h2><div class="min-sort"><a href="" target="_blank">设计</a><a href="" target="_blank">音乐</a><a href="" target="_blank">青春文学</a><a href="" target="_blank">绘画</a><a href="" target="_blank">人物传记</a><a href="" target="_blank">外国文学</a></div></li><li class="mainCate"><h2>人文社科</h2><div class="min-sort"><a href="" target="_blank">数学</a><a href="" target="_blank">英语教材</a><a href="" target="_blank">化学</a><a href="" target="_blank">日语</a><a href="" target="_blank">生物科学</a><a href="" target="_blank">专业英语</a></div></li><li class="mainCate"><h2>科学技术</h2><div class="min-sort"><a href="" target="_blank">语言与编程</a><a href="" target="_blank">电子通信</a><a href="" target="_blank">电工电子</a><a href="" target="_blank">数据库</a><a href="" target="_blank">建筑工程</a><a href="" target="_blank">土木工程</a></div></li><li class="mainCate"><h2>生活休闲</h2><div class="min-sort"><a href="" target="_blank">家庭保健</a><a href="" target="_blank">美食烹饪</a><a href="" target="_blank">导游必备</a><a href="" target="_blank">地理学理论</a><a href="" target="_blank">动漫卡通</a><a href="" target="_blank">球类</a></div></li><li class="mainCate"><h2>教育考试</h2><div class="min-sort"><a href="" target="_blank">教学理论</a><a href="" target="_blank">自考</a><a href="" target="_blank">研究生考试</a><a href="" target="_blank">考研英语</a><a href="" target="_blank">公务员考试</a><a href="" target="_blank">初高中用书</a></div></li></ul><h2 class="yl-all-index"><a href="" target="_blank">浏览所有图书分类</a></h2><div class="book-ad-first"><a href="" target="_blank"><img src="img/haoshu.jpg" alt="新书推荐" /></a></div></div><div class="right"><div class="help"><a href="" target="_blank">如何购买</a>|<a href="" target="_blank">如何支付</a>|<a href="" target="_blank">旧书缺货怎么办</a>|<ahref=""target="_blank">配送方式与配送费</a>|<a href="" target="_blank">普通会员与VIP会员</a>|<ahref=""target="_blank">有路积分说明</a>|<a href="" target="_blank">有路礼券说明</a>|<ahref=""target="_blank">账户余额说明</a>|<a href="" target="_blank">退款退货说明</a>|<ahref=""target="_blank">电子书购买说明</a></div><div class="bottom-info"><div class="left"><div class="lunbotu"><img src="img/dazhuanpan.jpg" /><ul><li>1</li><li>2</li><li>3</li></ul></div><div class="book-recommend"><div class="header"><h2>推荐图书</h2><div><span>1</span>/4</div></div><div class="content"><ul><li><img src="img/狼图腾.jpg" /><div><a href="#">狼图腾(修订版)</a></div><div class="author">姜戎</div><div class="price"><span class="discount">¥15.90</span><span class="origin-price">¥39.80</span></div></li><li><img src="img/文化苦旅.jpg" /><div><a href="#">狼图腾(修订版)</a></div><div class="author">姜戎</div><div class="price"><span class="discount">¥15.90</span><span class="origin-price">¥39.80</span></div></li><li><img src="img/平凡的世界.jpg" /><div><a href="#">狼图腾(修订版)</a></div><div class="author">姜戎</div><div class="price"><span class="discount">¥15.90</span><span class="origin-price">¥39.80</span></div></li><li><img src="img/偷影子的人.jpg" /><div><a href="#">狼图腾(修订版)</a></div><div class="author">姜戎</div><div class="price"><span class="discount">¥15.90</span><span class="origin-price">¥39.80</span></div></li><li><img src="img/狼图腾.jpg" /><div><a href="#">狼图腾(修订版)5</a></div><div class="author">姜戎</div><div class="price"><span class="discount">¥15.90</span><span class="origin-price">¥39.80</span></div></li><li><img src="img/狼图腾.jpg" /><div><a href="#">狼图腾(修订版)6</a></div><div class="author">姜戎</div><div class="price"><span class="discount">¥15.90</span><span class="origin-price">¥39.80</span></div></li><li><img src="img/蔡永康.jpg" /><div><a href="#">狼图腾(修订版)7</a></div><div class="author">姜戎</div><div class="price"><span class="discount">¥15.90</span><span class="origin-price">¥39.80</span></div></li><li><img src="img/狼图腾.jpg" /><div><a href="#">狼图腾(修订版)</a></div><div class="author">姜戎</div><div class="price"><span class="discount">¥15.90</span><span class="origin-price">¥39.80</span></div></li></ul></div></div></div><div class="main-right"><div class="black-board"><div class="book-con"><div class="hd"><h2>黑板报</h2></div><div class="bd"><ul><li><ahref=""target="_blank"title="双十一积分兑好礼,团购更实惠!">双十一积分兑好礼</a></li><li><ahref=""target="_blank"title="有路网国庆中秋放假通知!">有路网国庆中秋放假通知!</a></li><li><ahref=""target="_blank"title="积分大抽奖,好礼送不停">积分大抽奖,好礼送不停</a></li><li><a href="" target="_blank" title="有路网开学红包第五季">有路网开学红包第五季</a></li></ul></div></div><div class="book-con"><div class="hd"><h2>购物指南</h2></div><div class="bd"><ul><li class="hot"><a href="" target="_blank">支付宝担保交易,安全快捷</a></li><li><a href="" target="_blank">保证24小时之内发货</a></li><li><a href="" target="_blank">赠送积分,积分可用于支付</a></li><li><a href="" target="_blank">收货后7天内可以无理由退货</a></li><li><a href="" target="_blank">提供电子商务小包、EMS、快递</a></li><li class="hot"><a href="" target="_blank">配送造成的所有损失由我们承担</a></li><li><a href="" target="_blank">提供免费短信提醒服务</a></li></ul></div></div><div class="book-ad-con"><img src="img/zhinan.jpg"alt="保证正版、保证低价、24小时发货、无理由退货" " /></div></div><div class="hot"><h2>近期热销榜</h2><ul><li><div class="book1"><span class="red">1</span>如果蜗牛有爱情(上下</div><div class="book2"><div><span class="red">1</span></div><div><img src="img/萤火虫小巷.jpg" /></div><div><p class="title">萤火虫小巷</p><p class="discount-price">¥14.40</p><p class="old-price">¥36.00</p></div></div></li><li><div class="book1"><span class="red">1</span>如果蜗牛有爱情(上下</div><div class="book2"><div><span class="red">1</span></div><div><img src="img/萤火虫小巷.jpg" /></div><div><p class="title">萤火虫小巷</p><p class="discount-price">¥14.40</p><p class="old-price">¥36.00</p></div></div></li><li><div class="book1"><span class="red">1</span>如果蜗牛有爱情(上下</div><div class="book2"><div><span class="red">1</span></div><div><img src="img/萤火虫小巷.jpg" /></div><div><p class="title">萤火虫小巷</p><p class="discount-price">¥14.40</p><p class="old-price">¥36.00</p></div></div></li><li><div class="book1"><span>4</span>如果蜗牛有爱情(上下</div><div class="book2"><div><span class="nored">4</span></div><div><img src="img/萤火虫小巷.jpg" /></div><div><p class="title">萤火虫小巷</p><p class="discount-price">¥14.40</p><p class="old-price">¥36.00</p></div></div></li><li><div class="book1"><span>4</span>如果蜗牛有爱情(上下</div><div class="book2"><div><span class="nored">1</span></div><div><img src="img/萤火虫小巷.jpg" /></div><div><p class="title">萤火虫小巷</p><p class="discount-price">¥14.40</p><p class="old-price">¥36.00</p></div></div></li><li><div class="book1"><span>4</span>如果蜗牛有爱情(上下</div><div class="book2"><div><span class="nored">1</span></div><div><img src="img/萤火虫小巷.jpg" /></div><div><p class="title">萤火虫小巷</p><p class="discount-price">¥14.40</p><p class="old-price">¥36.00</p></div></div></li><li><div class="book1"><span>4</span>如果蜗牛有爱情(上下</div><div class="book2"><div><span class="nored">1</span></div><div><img src="img/萤火虫小巷.jpg" /></div><div><p class="title">萤火虫小巷</p><p class="discount-price">¥14.40</p><p class="old-price">¥36.00</p></div></div></li><li><div class="book1"><span>4</span>如果蜗牛有爱情(上下</div><div class="book2"><div><span class="nored">1</span></div><div><img src="img/萤火虫小巷.jpg" /></div><div><p class="title">萤火虫小巷</p><p class="discount-price">¥14.40</p><p class="old-price">¥36.00</p></div></div></li><li><div class="book1"><span>4</span>如果蜗牛有爱情(上下</div><div class="book2"><div><span class="nored">1</span></div><div><img src="img/萤火虫小巷.jpg" /></div><div><p class="title">萤火虫小巷</p><p class="discount-price">¥14.40</p><p class="old-price">¥36.00</p></div></div></li><li><div class="book1"><span>4</span>如果蜗牛有爱情(上下</div><div class="book2"><div><span class="nored">1</span></div><div><img src="img/萤火虫小巷.jpg" /></div><div><p class="title">萤火虫小巷</p><p class="discount-price">¥14.40</p><p class="old-price">¥36.00</p></div></div></li></ul></div></div></div></div></div></div></body>
</html>

HTML5CSS3前端入门教程---从0开始通过一个商城实例手把手教你学习PC端和移动端页面开发第10章有路网PC端主页实战整合相关推荐

  1. HTML5+CSS3前端入门教程---从0开始通过一个商城实例手把手教你学习PC端和移动端页面开发第3章初识CSS

    本教程案例在线演示 有路网PC端 有路网移动端 免费配套视频教程 免费配套视频教程 教程配套源码资源 教程配套源码资源 考虑对人的描述方式 人 {身高:175cm; 体重:70kg; 肤色:黄色 } ...

  2. HTML5+CSS3前端入门教程---从0开始通过一个商城实例手把手教你学习PC端和移动端页面开发第5章CSS盒子模型

    本教程案例在线演示 有路网PC端 有路网移动端 免费配套视频教程 免费配套视频教程 教程配套源码资源 教程配套源码资源 div div 可定义文档中的分区(division). div 标签可以把网页 ...

  3. HTML5+CSS3前端入门教程---从0开始通过一个商城实例手把手教你学习PC端和移动端页面开发第2章HTML基础知识

    本教程案例在线演示 有路网PC端 有路网移动端 免费配套视频教程 免费配套视频教程 教程配套源码资源 教程配套源码资源 网页开发工具 VSCode 或 WebStorm HTML简介 HTML:Hyp ...

  4. html5中单选按钮的互斥应该,HTML5+CSS3前端入门教程---从0开始通过一个商城实例手把手教你学习PC端和移动端页面开发第6章表格与表单...

    ## 本教程案例在线演示 ## 教程配套源码资源 ### 表格 table标签(表格). tr标签(行). td标签(标准单元格). caption标签(标题). th标签(表头单元格). 为了更深一 ...

  5. 前端如何实现音乐盒胶盘的转动_郑州Web前端入门教程之如何实现图片优化?

    统计数据显示,图片内容已经占据互联网内容总量的62%,因此想要优化网站性能,图片绝对是优化的热点和重点.图片优化是Web前端工程师必须要掌握的知识点,在接下来的郑州Web前端入门教程就给大家讲解一下如 ...

  6. Android基础入门教程——2.4.7 构建一个可复用的自定义BaseAdapter

    Android基础入门教程--2.4.7 构建一个可复用的自定义BaseAdapter 标签(空格分隔): Android基础入门教程 本节引言: 如题,本节给大家带来的是构建一个可复用的自定义Bas ...

  7. 免费直播!真.零基础能学会的前端入门教程,还带实操抖音风格字体特效!

    茫茫职海中,有没有那么一个又简单又赚钱的行业呢? 答案:前端!!! 前端是进入技术行业的一个捷径,规划好能事半功倍. 1.前端门槛低,简单易学: 2.应用场景广泛,现已涉及到了各个领域: 3.市场需求 ...

  8. 前端入门教程(二)Web前端与HTML简介

    一 web1.0时代的网页制作 网页制作是web1.0时代的产物,那个时候的网页主要是静态网页,所谓的静态网页就是没有与用户进行交互而仅仅供读者浏览的网页,我们当时称为"牛皮癣"网 ...

  9. node html5,html5前端入门教程分享:Node.Js 框架

    项目前期准备: 以express 框架为例 npm i express-generator -g //全局安装express框架 express -e //生成express应用骨架 npm i // ...

最新文章

  1. 一对一直播app源码功能操详解方案分享
  2. nagios 使用MSN 发报警消息
  3. 使用sqlite3解决IDEA中SVN更新提示cleanup却无法cleanup的问题
  4. 学习鸟哥的Linux私房菜笔记(2)——基础指令
  5. java编写代码时易出错_写Java程序最容易犯的错误有哪些呢?
  6. 面向对象编程(一):类对象
  7. js中函数参数arguments、callee、caller,值传递、重载
  8. 地磁计HMC5883L
  9. 项目管理的经验(4年项目管理经验)
  10. colab使用入门(1)-安装库,保存/加载笔记本
  11. 常见互联网34个术语解释
  12. 第一篇 AlexNet——论文翻译
  13. VirtualBox 虚拟电脑控制台错误
  14. 内推一定能找到工作吗?三个问题带你了解内推
  15. 项目管理之关键链法VS关键路径法
  16. 一篇文章带你弄懂乐观锁与悲观锁,CAS原子性,synchronized底层原理
  17. 【唐老狮】C#——结构体和类的区别
  18. 《Dreamweaver CS6 完全自学教程》笔记 第十二章:框架的应用
  19. win32api模拟鼠标点击动作
  20. 【通俗向】方差分析--T检验和F检验的异同

热门文章

  1. 俞敏洪谈大学生活 演讲
  2. 985计算机硕士能进阿里吗,阿里员工:985硕士毕业,35岁才混到P7,后悔没早点入行!...
  3. JAVA面试题(第一部分)
  4. sky光遇弹琴脚本_sky光遇辅助脚本下载-sky光遇辅助脚本安卓版下载
  5. OpenGL基础图形编程
  6. 3-5年的电子工程师最容易遇到的4个瓶颈是什么?
  7. 网易数帆 Envoy Gateway 实践之旅:坚守 6 年,峥嵘渐显
  8. PR婚礼标题模板 梦幻浪漫植物生长动态婚礼全屏标题pr视频模板
  9. E72能否继续E71的辉煌?
  10. 百度对外开放Firefox版百度搜霸源码