Blogger Information
Blog 24
fans 4
comment 0
visits 20118
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
12月31日 学号:478291 仿淘宝购物车、结算页面
Lin__
Original
1843 people have browsed it

整体思路

  • 页面整体使用组件拼接的方式完成,每个页面大致分为3个部分:头部、页面主体内容区、尾部,同时页面主体内容区又分为购物车列表以及结算列表,因此总共分为4个组件完成

头部

  • 页面区域划分
  • 布局方式:flex布局
  • 页面代码:
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>公共头部组件</title>
  6. <link rel="stylesheet" href="public-header.css">
  7. <link rel="stylesheet" type="text/css" href="../../../css/iconfont.css">
  8. </head>
  9. <body>
  10. <!-- 头部 -->
  11. <div class="public-header">
  12. <!-- 左侧导航 -->
  13. <div class="left-link">
  14. <a href="#">网站首页</a>
  15. <a href="#">专题</a>
  16. <a href="#">网站导航</a>
  17. <a href="#">二手商品</a>
  18. <a href="#">讨论区</a>
  19. </div>
  20. <!-- 左侧导航 end -->
  21. <!-- 右侧按钮 -->
  22. <div class="right-link">
  23. <!-- 用户登录 -->
  24. <a href="#">
  25. <i class="iconfont icon-huiyuan2"></i>用户登录
  26. </a>
  27. <!-- 免费注册 -->
  28. <a href="#">免费注册</a>
  29. </div>
  30. <!-- 右侧按钮 end -->
  31. </div>
  32. <!-- 头部 end -->
  33. </body>
  34. </html>
  1. @import url(../public_style.css);
  2. .public-header{
  3. width: 100vw;
  4. height: 44px;
  5. background-color: black;
  6. padding: 0 20px;
  7. display: flex;
  8. flex-flow: row nowrap;
  9. justify-content: space-between;
  10. box-sizing: border-box;
  11. }
  12. /*左侧导航*/
  13. .public-header > .left-link{
  14. display: flex;
  15. flex-flow: row nowrap;
  16. }
  17. /*左侧导航 链接文字*/
  18. .public-header > .left-link > a{
  19. color: #ccc;
  20. font-size: 12px;
  21. padding:0 10px;
  22. height: 44px;
  23. line-height: 44px;
  24. }
  25. .public-header > .left-link > a:hover{
  26. background-color: #fff;
  27. color: #000;
  28. }
  29. /*左侧导航 end*/
  30. /*右侧按钮*/
  31. .right-link{
  32. display: flex;
  33. flex-flow: row nowrap;
  34. }
  35. /*右侧按钮 链接文字*/
  36. .public-header > .right-link > a{
  37. color: #ccc;
  38. font-size: 12px;
  39. padding:0 10px;
  40. height: 44px;
  41. line-height: 44px;
  42. }
  43. .public-header > .right-link > a >i{
  44. margin-right: 10px;
  45. }
  46. /*右侧按钮 end*/

尾部

  • 页面区域划分
  • 布局方式:使用flex布局
  • 页面代码
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>公共尾部组件</title>
  6. <link rel="stylesheet" href="public-footer.css">
  7. <link rel="stylesheet" type="text/css" href="../../../css/iconfont.css">
  8. </head>
  9. <body>
  10. <!-- 尾部 -->
  11. <div class="public-footer">
  12. <!-- 左侧 -->
  13. <div class="footer-left">
  14. <!-- 友情链接 -->
  15. <div class="left-link">
  16. <a href="#">简介</a>
  17. <a href="#">联系我们</a>
  18. <a href="#">招聘信息</a>
  19. <a href="#">友情链接</a>
  20. <a href="#">用户服务协议</a>
  21. <a href="#">隐私权声明</a>
  22. <a href="#">法律投诉声明</a>
  23. </div>
  24. <!-- 友情链接 end -->
  25. <!-- 版权声明 -->
  26. <div class="left-info">
  27. <!-- LOGO -->
  28. <span>LOGO</span>
  29. <!-- 版权声明文字 -->
  30. <div>
  31. <span>2019 fengniao.com. All rights reserved . 安徽闹着玩有限公司(无聊网)版权所有</span>
  32. <span>皖ICP证150110号 京ICP备14323013号-2 皖公网安备110108024357788号</span>
  33. <span>违法和不良信息举报电话: 0551-1234567 举报邮箱: admin@baidu.com</span>
  34. </div>
  35. </div>
  36. <!-- 版权声明 end -->
  37. </div>
  38. <!-- 左侧 end -->
  39. <!-- 右侧 -->
  40. <div class="footer-right">
  41. <span>关注公众号</span>
  42. <img src="../../../images/erwei-code.png">
  43. </div>
  44. <!-- 右侧 end -->
  45. </div>
  46. <!-- 尾部 end -->
  47. </body>
  48. </html>
  1. @import url(../public_style.css);
  2. .public-footer{
  3. width: 100vw;
  4. height: 190px;
  5. background-color: #282c31;
  6. padding:20px;
  7. color: #ccc;
  8. display: flex;
  9. flex-flow: row nowrap;
  10. font-size: 13px;
  11. color: #ccc;
  12. }
  13. /*左侧*/
  14. .public-footer > .footer-left{
  15. width: 60vw;
  16. height: 190px;
  17. display: flex;
  18. flex-flow: column wrap;
  19. border-right: 1px solid #000;
  20. box-sizing: border-box;
  21. padding: 20px;
  22. }
  23. /*友情链接*/
  24. .public-footer > .footer-left > .left-link{
  25. width: 60vw;
  26. flex-flow: row nowrap;
  27. justify-content: space-around;
  28. }
  29. .public-footer > .footer-left > .left-link > a{
  30. padding: 5px 15px;
  31. color: #ccc;
  32. }
  33. /*版权声明*/
  34. .public-footer > .footer-left > .left-info{
  35. display: flex;
  36. flex-flow: row nowrap;
  37. justify-content: space-around;
  38. margin-top: 10px;
  39. }
  40. /*LOGO*/
  41. .public-footer > .footer-left > .left-info > span{
  42. font-size: 30px;
  43. line-height: 120px;
  44. }
  45. /*版权声明文字*/
  46. .public-footer > .footer-left > .left-info > div{
  47. display: flex;
  48. flex-direction: column;
  49. align-content: space-around;
  50. }
  51. .public-footer > .footer-left > .left-info > div > span{
  52. line-height: 40px;
  53. }
  54. /*版权声明 end*/
  55. /*左侧 end*/
  56. /*右侧*/
  57. .public-footer > .footer-right{
  58. display: flex;
  59. flex-direction: column;
  60. margin-left: 40px;
  61. }
  62. .public-footer > .footer-right > span{
  63. margin-left: 20px;
  64. }
  65. .public-footer > .footer-right > img{
  66. margin-top: 10px;
  67. width: 110px;
  68. height: 110px;
  69. }
  70. /*右侧 end*/

购物车列表

  • 页面区域划分
  • 布局方式:使用grid布局
  • 页面代码
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>购物车列表组件</title>
  6. <link rel="stylesheet" href="shop-car.css">
  7. <link rel="stylesheet" type="text/css" href="../../../css/iconfont.css">
  8. </head>
  9. <body>
  10. <!-- 购物车列表组件 -->
  11. <div class="shop-car">
  12. <!-- 选项卡 -->
  13. <div class="tab">
  14. <div class="tab-item">
  15. <span>全部商品</span>
  16. <span>2</span>
  17. </div>
  18. <div class="tab-item">
  19. <span>降价商品</span>
  20. <span>0</span>
  21. </div>
  22. <div class="tab-item">
  23. <span>库存紧张</span>
  24. <span>0</span>
  25. </div>
  26. <div>
  27. <span>已选商品(不含运费)</span>
  28. <span>0.00</span>
  29. <button type="button">结算</button>
  30. </div>
  31. </div>
  32. <!-- 选项卡 end -->
  33. <!-- 购物车标题 -->
  34. <div class="car-title">
  35. <span>
  36. <input type="checkbox" name="all_check" id="all_check" />
  37. <label for="all_check">全选</label>
  38. </span>
  39. <span>商品信息</span>
  40. <span>单价</span>
  41. <span>数量</span>
  42. <span>金额</span>
  43. <span>操作</span>
  44. </div>
  45. <!-- 购物车标题 end -->
  46. <!-- 购物车列表 -->
  47. <div class="car-list">
  48. <div class="car-list-item">
  49. <span>
  50. <input type="checkbox" name="shop_check[]" id="shop_check_1" />
  51. <label for="shop_check_1">店铺:<span>雨色可可</span></label>
  52. </span>
  53. <div class="car-list-goods">
  54. <input type="checkbox" name="goods_check[]" id="goods_check_1" />
  55. <img src="../../../images/4b18efd7c19db04e.jpg" alt="">
  56. <span>颜域女装百搭气质雪纺衬衫秋装2019年新款</span>
  57. <span class="goods-type">颜色分类:灰</span>
  58. <span class="goods-old-price">¥48.00</span>
  59. <input type="number" min="1" class="goods-number">
  60. <span class="goods-price">¥47.00</span>
  61. <a href="#">删除</a>
  62. </div>
  63. </div>
  64. </div>
  65. <!-- 购物车列表 end -->
  66. <!-- 购物车结算 -->
  67. <div class="car-settle">
  68. <span>
  69. <input type="checkbox" name="all_check_settle" id="all_check_settle" />
  70. <label for="all_check_settle">全选</label>
  71. </span>
  72. <span>删除</span>
  73. <span>移入收藏夹</span>
  74. <span>分享</span>
  75. <div>
  76. <span>已选商品 <span>0</span></span>
  77. <span>合计(不含运费):</span>
  78. <span>0.00</span>
  79. <button type="button">结算</button>
  80. </div>
  81. </div>
  82. <!-- 购物车结算 end -->
  83. </div>
  84. <!-- 购物车列表组件 end -->
  85. </body>
  86. </html>
  1. @import url(../../public/public_style.css);
  2. .shop-car{
  3. width: 1200px;
  4. margin: auto;
  5. }
  6. /*选项卡*/
  7. .shop-car > .tab{
  8. width: 1200px;
  9. height:50px;
  10. display: grid;
  11. grid-template-columns: 150px 150px 150px 1fr;
  12. grid-template-rows: 50px;
  13. }
  14. .shop-car > .tab > .tab-item{
  15. place-self: center;
  16. font-size: 20px;
  17. height:50px;
  18. width: 150px;
  19. text-align: center;
  20. line-height: 50px;
  21. border-bottom: 2px solid #ccc;
  22. }
  23. .shop-car > .tab > .tab-item:first-child{
  24. border-bottom: 2px solid #ff5500;
  25. color: #ff5500;
  26. }
  27. .shop-car > .tab > .tab-item:hover{
  28. border-bottom: 2px solid #ff5500;
  29. color: #ff5500;
  30. }
  31. .shop-car > .tab > .tab-item > span:last-child{
  32. font-size: 15px;
  33. color: #ff5500;
  34. }
  35. .shop-car > .tab > div:last-child{
  36. width: 100%;
  37. height: 50px;
  38. font-size: 15px;
  39. border-bottom: 2px solid #ccc;
  40. text-align: right;
  41. line-height: 50px;
  42. }
  43. .shop-car > .tab > div:last-child > span:nth-child(2){
  44. color: #ff5500;
  45. font-weight: bold;
  46. }
  47. .shop-car > .tab > div:last-child > button{
  48. width: 70px;
  49. height: 30px;
  50. background-color: #ff5500;
  51. color: #fff;
  52. border: none;
  53. border-radius: 5px;
  54. }
  55. /*选项卡 end*/
  56. /*购物车标题*/
  57. .shop-car > .car-title{
  58. display: grid;
  59. grid-template-columns: 180px 1fr 150px 150px 150px 150px;
  60. height: 90px;
  61. align-items: center;
  62. font-size: 13px;
  63. padding: 0 10px;
  64. box-sizing: border-box;
  65. }
  66. /*购物车标题 end*/
  67. /*购物车列表*/
  68. .shop-car > .car-list > .car-list-item{
  69. width: 1200px;
  70. height: 170px;
  71. display: grid;
  72. grid-template-rows: 30px 1fr;
  73. }
  74. .shop-car > .car-list > .car-list-item > span{
  75. padding: 0 10px;
  76. box-sizing: border-box;
  77. font-size: 13px;
  78. }
  79. .shop-car > .car-list > .car-list-item > .car-list-goods{
  80. width: 100%;
  81. height: 120px;
  82. background-color: #fbfbfb;
  83. border: 1px solid #ccc;
  84. display: grid;
  85. grid-template-columns: 50px 100px 1fr 150px 150px 150px 150px 150px;
  86. padding-top:20px;
  87. grid-column-gap: 10px;
  88. font-size: 13px;
  89. }
  90. .shop-car > .car-list > .car-list-item > .car-list-goods > img{
  91. width: 100px;
  92. height: 100px;
  93. }
  94. .shop-car > .car-list > .car-list-item > .car-list-goods > .goods-type{
  95. color: #ccc;
  96. }
  97. .shop-car > .car-list > .car-list-item > .car-list-goods > .goods-old-price{
  98. font-weight: bold;
  99. }
  100. .shop-car > .car-list > .car-list-item > .car-list-goods > .goods-number{
  101. height: 20px;
  102. width: 70px;
  103. }
  104. .shop-car > .car-list > .car-list-item > .car-list-goods > .goods-price{
  105. font-weight: bold;
  106. color: #ff5500;
  107. }
  108. .shop-car > .car-list > .car-list-item > .car-list-goods > a{
  109. color: #000;
  110. }
  111. /*购物车列表 end*/
  112. /*购物车结算*/
  113. .shop-car > .car-settle{
  114. width: 1200px;
  115. height: 60px;
  116. display: grid;
  117. grid-template-columns: 100px 80px 80px 80px 1fr;
  118. font-size: 13px;
  119. background-color: #E7ECF0;
  120. align-items: center;
  121. margin-top: 20px;
  122. padding-left: 10px;
  123. box-sizing: border-box;
  124. }
  125. .shop-car > .car-settle > div{
  126. justify-self: flex-end;
  127. }
  128. .shop-car > .car-settle > div > span:first-child > span{
  129. font-size: 20px;
  130. color: #ff5500;
  131. font-weight: bold;
  132. }
  133. .shop-car > .car-settle > div > span:nth-child(3){
  134. font-size: 25px;
  135. color: #ff5500;
  136. font-weight: bold;
  137. }
  138. .shop-car > .car-settle > div > button{
  139. background-color: #ff5500;
  140. color:#fff;
  141. height: 60px;
  142. width: 100px;
  143. border: none;
  144. margin-left: 10px;
  145. }
  146. /*购物车结算 end*/

结算列表

  • 页面区域划分
  • 布局方式:使用flex+grid布局
  • 页面代码
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>结算列表组件</title>
  6. <link rel="stylesheet" href="shop-buy.css">
  7. <link rel="stylesheet" type="text/css" href="../../../css/iconfont.css">
  8. </head>
  9. <body>
  10. <!-- 结算列表组件 -->
  11. <div class="shop-buy">
  12. <!-- 收货地址 -->
  13. <div class="address-list">
  14. <div class="title">
  15. <h4>确认收货地址</h4>
  16. <a href="#">管理收货地址</a>
  17. </div>
  18. <div class="list-item active">
  19. <span>寄送至</span>
  20. <div>
  21. <input type="radio" name="address" id="address_1" checked>
  22. <label for="address_1">XX省 XX市 XX区 XX街道 XX收</label>
  23. </div>
  24. <a href="#">修改本地址</a>
  25. </div>
  26. <div class="list-item">
  27. <span></span>
  28. <div>
  29. <input type="radio" name="address" id="address_2">
  30. <label for="address_2">XX省 XX市 XX区 XX街道 XX收</label>
  31. </div>
  32. </div>
  33. </div>
  34. <!-- 收货地址 end -->
  35. <!-- 确认订单 end -->
  36. <div class="order-list">
  37. <div class="title">
  38. <h4>确认订单信息</h4>
  39. </div>
  40. <div class="order-title">
  41. <span>店铺宝贝</span>
  42. <span>商品属性</span>
  43. <span>单价</span>
  44. <span>数量</span>
  45. <span>优惠方式</span>
  46. <span>小计</span>
  47. </div>
  48. <div class="order-good-list">
  49. <div class="order-good-list-item">
  50. <div class="shop-info">
  51. <span>店铺:雨色可可</span>
  52. <span>卖家:小可</span>
  53. </div>
  54. <div class="good-info">
  55. <div>
  56. <img src="../../../images/4b18efd7c19db04e.jpg" alt="">
  57. <span>颜域女装百搭气质雪纺衬衫秋装2019年新款</span>
  58. </div>
  59. <span class="goods-type">颜色分类:灰</span>
  60. <span class="goods-old-price">¥48.00</span>
  61. <span>1</span>
  62. <span>无优惠</span>
  63. <span class="goods-price">¥47.00</span>
  64. </div>
  65. <div class="order-express">
  66. <div class="user-note">
  67. <label for="user_note">卖家留言:</label>
  68. <textarea id="user_note"></textarea>
  69. </div>
  70. <div>
  71. <span>运送方式:普通配送 快递 免邮</span>
  72. <span class="price">0.00</span>
  73. </div>
  74. <div>
  75. <div>
  76. <span>运费险:</span>
  77. <span></span>
  78. <span>运费险</span>
  79. <span>退换货可赔付10元</span>
  80. </div>
  81. <span>1.50</span>
  82. </div>
  83. <div>
  84. <span>店铺合计(含运费):</span>
  85. <span class="price">¥48.00</span>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. <!-- 确认订单 end -->
  92. <!-- 支付方式 -->
  93. <div class="pay-type">
  94. <span>
  95. <input type="checkbox" name="pay_type[]" id="pay_type_1">
  96. <label for="pay_type_1">朋友代付</label>
  97. </span>
  98. <span>
  99. <input type="checkbox" name="pay_type[]" id="pay_type_2">
  100. <label for="pay_type_2">匿名支付</label>
  101. </span>
  102. </div>
  103. <!-- 支付方式 end -->
  104. <!-- 支付信息 -->
  105. <div class="pay-info">
  106. <div>
  107. <span>
  108. <span>实付款:</span>
  109. <span class="price">¥48.00</span>
  110. </span>
  111. <span><span>寄送至:</span>XX省 XX市 XX区 XX街道</span>
  112. <span><span>收货人:</span>XX 18888888888</span>
  113. </div>
  114. <div>
  115. <a href="#"><i class="iconfont icon-shangyibu"></i>返回购物车</a>
  116. <button>提交订单</button>
  117. </div>
  118. </div>
  119. <!-- 支付信息 end -->
  120. </div>
  121. <!-- 结算列表组件 end -->
  122. </body>
  123. </html>
  1. @import url(../../public/public_style.css);
  2. .shop-buy{
  3. width: 1200px;
  4. margin: auto;
  5. }
  6. /*标题*/
  7. .title{
  8. display: flex;
  9. justify-content: space-between;
  10. border-bottom: 1px solid #ccc;
  11. padding: 5px 0;
  12. margin-top: 20px;
  13. }
  14. /*收货地址*/
  15. .shop-buy > .address-list{
  16. display: flex;
  17. flex-flow: column wrap;
  18. }
  19. .shop-buy > .address-list > .list-item{
  20. margin-top: 10px;
  21. width: 1200px;
  22. height: 30px;
  23. padding: 0 20px;
  24. box-sizing: border-box;
  25. display: grid;
  26. grid-template-columns: 80px 1fr 80px;
  27. font-size: 13px;
  28. line-height: 30px;
  29. }
  30. .shop-buy > .address-list > .list-item:hover{
  31. background-color: #fff0e8;
  32. cursor: pointer;
  33. }
  34. .active{
  35. border:1px solid #f40;
  36. background-color: #fff0e8;
  37. box-shadow: 5px 5px 0 #f3f3f3;
  38. font-weight: bold;
  39. }
  40. .active > span:first-child{
  41. color:#f40;
  42. }
  43. /*收货地址 end*/
  44. /*确认订单*/
  45. .shop-buy > .order-list{
  46. font-size: 13px;
  47. display: flex;
  48. flex-flow: column wrap;
  49. }
  50. .shop-buy > .order-list > .order-title{
  51. width: 1200px;
  52. height: 30px;
  53. line-height: 30px;
  54. border-bottom: 3px solid #b2d1ff;
  55. display: grid;
  56. grid-template-columns: 255px 255px 1fr 1fr 1fr 1fr;
  57. text-align: center;
  58. }
  59. .shop-buy > .order-list > .order-good-list{
  60. display: flex;
  61. flex-flow: column wrap;
  62. }
  63. .shop-buy > .order-list > .order-good-list > .order-good-list-item{
  64. display: flex;
  65. flex-flow: column wrap;
  66. }
  67. .shop-buy > .order-list > .order-good-list > .order-good-list-item > .shop-info{
  68. width: 1200px;
  69. height: 30px;
  70. margin-top: 20px;
  71. }
  72. .shop-buy > .order-list > .order-good-list > .order-good-list-item > .shop-info >span{
  73. margin-right: 40px;
  74. }
  75. .shop-buy > .order-list > .order-good-list > .order-good-list-item > .good-info{
  76. display: grid;
  77. grid-template-columns: 255px 255px 1fr 1fr 1fr 1fr;
  78. border-top: 1px dashed #b2d1ff;
  79. background-color: rgb(251, 252, 255);
  80. padding: 10px 0;
  81. }
  82. .shop-buy > .order-list > .order-good-list > .order-good-list-item > .good-info > div{
  83. width: 255px;
  84. display: grid;
  85. grid-template-columns: 1fr 1fr;
  86. }
  87. .shop-buy > .order-list > .order-good-list > .order-good-list-item > .good-info > div >img{
  88. width: 100px;
  89. height: 100px;
  90. }
  91. .shop-buy > .order-list > .order-good-list > .order-good-list-item > .good-info > span{
  92. justify-self: center;
  93. }
  94. .shop-buy > .order-list > .order-good-list > .order-good-list-item > .good-info > span:last-child{
  95. color: #f40;
  96. font-weight: bold;
  97. }
  98. .shop-buy > .order-list > .order-good-list > .order-good-list-item > .order-express{
  99. width: 1200px;
  100. height:100px;
  101. background-color: rgb(251, 252, 255);
  102. margin-top: 10px;
  103. display: grid;
  104. grid-template-columns: 1fr 1fr;
  105. grid-template-rows: 1fr 1fr 1fr;
  106. grid-template-areas: 'one two'
  107. 'one three'
  108. 'four four';
  109. border-top: 1px dashed #b2d1ff;
  110. border-bottom: 1px dashed #b2d1ff;
  111. }
  112. .shop-buy > .order-list > .order-good-list > .order-good-list-item > .order-express > div:first-child{
  113. grid-area: one;
  114. display: flex;
  115. align-items: flex-start;
  116. padding-left: 10px;
  117. padding-top: 10px;
  118. box-sizing: border-box;
  119. }
  120. .shop-buy > .order-list > .order-good-list > .order-good-list-item > .order-express > div:nth-child(2){
  121. align-self: center;
  122. display: flex;
  123. flex-flow: row nowrap;
  124. justify-content: space-between;
  125. padding-right: 5px;
  126. box-sizing: border-box;
  127. }
  128. .shop-buy > .order-list > .order-good-list > .order-good-list-item > .order-express > div:nth-child(3){
  129. align-self: center;
  130. display: flex;
  131. flex-flow: row nowrap;
  132. justify-content: space-between;
  133. padding-right: 5px;
  134. box-sizing: border-box;
  135. }
  136. .shop-buy > .order-list > .order-good-list > .order-good-list-item > .order-express > div:last-child{
  137. grid-area: four;
  138. align-self: center;
  139. text-align: right;
  140. padding-right: 5px;
  141. box-sizing: border-box;
  142. }
  143. .price{
  144. color: #f40;
  145. font-weight: bold;
  146. }
  147. /*确认订单 end*/
  148. /*支付方式*/
  149. .shop-buy > .pay-type{
  150. height: 30px;
  151. text-align: right;
  152. border-bottom: 1px solid #ccc;
  153. font-size: 13px;
  154. margin-top: 20px;
  155. }
  156. .shop-buy > .pay-type > span:first-child{
  157. margin-right: 40px;
  158. }
  159. /*支付方式 end*/
  160. /*支付信息*/
  161. .shop-buy > .pay-info{
  162. width: 1200px;
  163. display: flex;
  164. margin-top: 20px;
  165. flex-direction: column;
  166. justify-content: flex-end;
  167. }
  168. .shop-buy > .pay-info > div{
  169. margin-left: auto;
  170. width:300px;
  171. font-size: 13px;
  172. }
  173. .shop-buy > .pay-info > div:first-child{
  174. border: 1px solid #ff5500;
  175. text-align: right;
  176. display: grid;
  177. line-height: 30px;
  178. padding:10px;
  179. }
  180. .shop-buy > .pay-info > div:first-child > span > span{
  181. font-weight: bold;
  182. }
  183. .shop-buy > .pay-info > div:first-child > span:first-child > span:last-child{
  184. font-size: 25px;
  185. }
  186. .shop-buy > .pay-info > div:last-child{
  187. width:320px;
  188. display: grid;
  189. grid-template-rows: 30px;
  190. grid-template-columns: 1fr 1fr;
  191. }
  192. .shop-buy > .pay-info > div:last-child > a{
  193. justify-self: center;
  194. align-self: center;
  195. }
  196. .shop-buy > .pay-info > div:last-child > button{
  197. border: none;
  198. background-color: #ff5500;
  199. color: #fff;
  200. }
  201. /*支付信息 end*/

页面整体效果


Correcting teacher:天蓬老师天蓬老师

Correction status:qualified

Teacher's comments:页面写得非常好看
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post