欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

列表页和商品详情页

程序员文章站 2022-03-13 15:36:42
...

1.列表页

图片展示

列表页和商品详情页

商品列表HTML代码

  1. <section class="container d-flex my-4 jusify-content-between">
  2. <section class="card border-0 w-20">
  3. <img src="./img/cart01.jpg" class="border-radius-5" alt="">
  4. <div class="card-body">
  5. <a href="" class="d-block hover-a-none">[细说]细说PHP</a>
  6. <a href="" class="hover-a-none textColorRed120 fontSize14">¥199.00</a>
  7. </div>
  8. </section>
  9. <section class="card border-0 w-20">
  10. <img src="./img/flo1.jpg" class="border-radius-5" alt="">
  11. <div class="card-body">
  12. <a href="" class="d-block hover-a-none">[细说]细说网页制作</a>
  13. <a href="" class="hover-a-none textColorRed120 fontSize14">¥199.00</a>
  14. </div>
  15. </section>
  16. <section class="card border-0 w-20">
  17. <img src="./img/like04.jpg" class="border-radius-5" alt="">
  18. <div class="card-body">
  19. <a href="" class="d-block hover-a-none">[细说]细说HTML5</a>
  20. <a href="" class="hover-a-none textColorRed120 fontSize14">¥199.00</a>
  21. </div>
  22. </section>
  23. <section class="card border-0 w-20">
  24. <img src="./img/g1.jpg" class="border-radius-5" alt="">
  25. <div class="card-body">
  26. <a href="" class="d-block hover-a-none">[细说]细说JS</a>
  27. <a href="" class="hover-a-none textColorRed120 fontSize14">¥199.00</a>
  28. </div>
  29. </section>
  30. </section>

2.商品详情页

图片展示

列表页和商品详情页
列表页和商品详情页
列表页和商品详情页

商品详情页HTML代码

  1. <!-- 商品图片及信息 -->
  2. <section class="container d-flex jusify-content-between">
  3. <section class=" w-40 pl-4">
  4. <img src="./img/proDet01_big.jpg" alt="">
  5. <div>
  6. <img src="./img/proDet01.jpg" alt="">
  7. <img src="./img/proDet01.jpg" alt="">
  8. <img src="./img/proDet01.jpg" alt="">
  9. <img src="./img/proDet01.jpg" alt="">
  10. </div>
  11. </section>
  12. <section class=" w-50 d-flex flex-column">
  13. <section class="border-bottom pb-4">
  14. <h2 class="fontSize18 font-weight-bold">[细说]细说PHP</h2>
  15. <p class="text-777 my-4">正版细说PHP,编程的揭秘等你来,思维的反转,每一天的进步靠自己</p>
  16. <p class="fontSize16 pb-2 font-weight-bold textColorRed120">¥199.00</p>
  17. </section>
  18. <section class="border-bottom py-4">
  19. <div>
  20. <p class="my-4">书的种类</p>
  21. <div>
  22. <img src="./img/proDet01.jpg" class="w-10" alt="">
  23. <img src="./img/proDet01.jpg" class="w-10" alt="">
  24. <img src="./img/proDet01.jpg" class="w-10" alt="">
  25. <img src="./img/proDet01.jpg" class="w-10" alt="">
  26. </div>
  27. </div>
  28. <div class="my-4">
  29. <p class="py-2">数量 库存<span class="textColorRed120">2000</span></p>
  30. <div class="d-flex mb-4 w-20 align-items-center">
  31. <div class="fontSize20 cursor border bg-white px-2">-</div>
  32. <div>
  33. <input type="text" size="2" name="" class="border-0 px-2 text-center" id="" value="1">
  34. </div>
  35. <div class="border cursor bg-white px-2">+</div>
  36. </div>
  37. </div>
  38. </section>
  39. <section class=" d-flex mt-4 pt-4 jusify-content-around">
  40. <button class="bg-white border bg-dark text-white px-4 w-30 py-2 fontSize14">立即购买</button>
  41. <button class="bg-white border px-4 w-30 py-2 fontSize14">加入购物车</button>
  42. </section>
  43. </section>
  44. </section>
  45. <!-- 商品详情及为你推荐 -->
  46. <section class="container d-flex jusify-content-between align-content-start">
  47. <section class="w-80 border-box">
  48. <div class=" w-90 d-flex border-box border-top border-bottom">
  49. <span class="py-2 border-bottom border-dark px-2">商品详情</span>
  50. <span class="mx-2 py-2 px-2">所有评价</span>
  51. </div>
  52. <div>
  53. <img src="./img/det01.jpg" alt="">
  54. <img src="./img/det01.jpg" alt="">
  55. <img src="./img/det01.jpg" alt="">
  56. <img src="./img/det01.jpg" alt="">
  57. </div>
  58. </section>
  59. <section class="w-20 border pb-4 h-10">
  60. <div class="bg-db border-top border-bottom-black-30 text-center bg-black-30 py-2">为你推荐</div>
  61. <div class="d-flex flex-column jusify-content-between">
  62. <img src="./img/see01.jpg" class="w-80 m-auto" alt="">
  63. <p class="pl-4 my-2">[细说]细说PHP</p>
  64. <p class="pl-4 my-2">¥199.00</p>
  65. </div>
  66. <div class="d-flex flex-column jusify-content-between">
  67. <img src="./img/see01.jpg" class="w-80 m-auto" alt="">
  68. <p class="pl-4 my-2">[细说]细说PHP</p>
  69. <p class="pl-4 my-2">¥199.00</p>
  70. </div>
  71. <div class="d-flex flex-column jusify-content-between">
  72. <img src="./img/see01.jpg" class="w-80 m-auto" alt="">
  73. <p class="pl-4 my-2">[细说]细说PHP</p>
  74. <p class="pl-4 my-2">¥199.00</p>
  75. </div>
  76. <div class="d-flex flex-column jusify-content-between">
  77. <img src="./img/see01.jpg" class="w-80 m-auto" alt="">
  78. <p class="pl-4 my-2">[细说]细说PHP</p>
  79. <p class="pl-4 my-2">¥199.00</p>
  80. </div>
  81. </section>
  82. </section>
  83. <!-- 猜你喜欢 -->
  84. <section class="container-full p-4 bg-fbfb">
  85. <section class="text-center fontSize16">
  86. 猜你喜欢
  87. </section>
  88. <section class="d-flex jusify-content-between">
  89. <section class="w-10 opacity3 d-flex fontSize50 jusify-content-center align-items-center iconfont icon-zuoyoujiantou1"></section>
  90. <section class="w-80 d-flex jusify-content-around">
  91. <section class="card border-0">
  92. <a href="">
  93. <img src="./img/like04.jpg" alt="">
  94. </a>
  95. <section class="card-body bg-fbfb">
  96. <p class="fontSize14">[细说]细说PHP</p>
  97. <p class="fontSize14 textColorRed120">¥199.00</p>
  98. </section>
  99. </section>
  100. <section class="card border-0">
  101. <a href="">
  102. <img src="./img/like04.jpg" alt="">
  103. </a>
  104. <section class="card-body bg-fbfb">
  105. <p class="fontSize14">[细说]细说PHP</p>
  106. <p class="fontSize14 textColorRed120">¥199.00</p>
  107. </section>
  108. </section>
  109. <section class="card border-0">
  110. <a href="">
  111. <img src="./img/like04.jpg" alt="">
  112. </a>
  113. <section class="card-body bg-fbfb">
  114. <p class="fontSize14">[细说]细说PHP</p>
  115. <p class="fontSize14 textColorRed120">¥199.00</p>
  116. </section>
  117. </section>
  118. <section class="card border-0">
  119. <a href="">
  120. <img src="./img/like04.jpg" alt="">
  121. </a>
  122. <section class="card-body bg-fbfb">
  123. <p class="fontSize14">[细说]细说PHP</p>
  124. <p class="fontSize14 textColorRed120">¥199.00</p>
  125. </section>
  126. </section>
  127. </section>
  128. <section class="w-10 opacity3 d-flex fontSize50 jusify-content-center align-items-center iconfont icon-zuoyoujiantou"></section>
  129. </section>
  130. </section>