博客列表 >商品详情页练习

商品详情页练习

浅若夏沫
浅若夏沫原创
2021年11月17日 14:32:56504浏览
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>商品详情页</title>
  6. <link rel="stylesheet" href="./css/base.css" />
  7. <link rel="stylesheet" href="./css/eduwork.css" />
  8. <link rel="stylesheet" href="./css/iconfont.css" />
  9. <link rel="stylesheet" href="./css/layout.css" />
  10. <link rel="stylesheet" href="./css/footer.css" />
  11. <link rel="stylesheet" href="./css/info.css" />
  12. <link rel="stylesheet" href="https://at.alicdn.com/t/font_2934967_j3h3059l5o.css">
  13. </head>
  14. <body>
  15. <!--头部标签开始-->
  16. <header class=" container d-flex jusify-content-between">
  17. <div class="">
  18. <img src="./img/logo.png" alt="">
  19. </div>
  20. <div class=" d-flex jusify-content-between align-items-center">
  21. <div class="px-3">
  22. <a href="" class="fontSize14">登录</a>
  23. <span>|</span>
  24. <a href="" class="fontSize14">注册</a>
  25. </div>
  26. <div class="pl-2 border-bottom border-black py-1">
  27. <form action="">
  28. <input type="search" class="border-0" placeholder="热门搜索:细说php" name="" id="">
  29. <button class="header-button iconfont border-0 bg-transparent textColorRed120 icon-sousuo"></button>
  30. </form>
  31. </div>
  32. <div class="px-3 header-icon d-flex align-items-center">
  33. <i class="iconfont icon-31wode textColorRed120"></i>
  34. <i class="iconfont icon-erweima textColorRed120"></i>
  35. <i class="iconfont icon-gouwuchekong textColorRed120"></i>
  36. </div>
  37. </div>
  38. </header>
  39. <!--头部标签结束-->
  40. <!-- 导航开始-->
  41. <nav class="container-full ">
  42. <ul class="d-flex w-40 m-auto text-center">
  43. <li class="py-2 px-4 mx-3"><a href="" class="fontSize14">首页</a></li>
  44. <li class="py-2 px-4 mx-3">
  45. <a href="" class="fontSize14">编程图书</a>
  46. <section class="w-100 position-absolute left-0">
  47. <ul class="d-flex w-40 m-auto">
  48. <li class="py-2 px-4 mx-3"><a href="" class="text-white">细说PHP</a></li>
  49. <li class="py-2 px-4 mx-3"><a href=" " class="text-white">细说PHP</a></li>
  50. <li class="py-2 px-4 mx-3"><a href="" class="text-white">细说PHP</a></li>
  51. <li class="py-2 px-4 mx-3"><a href="" class="text-white">细说PHP</a></li>
  52. </ul>
  53. </section>
  54. </li>
  55. <li class="py-2 px-4 mx-3"><a href="" class="fontSize14">算法图书</a></li>
  56. <li class="py-2 px-4 mx-3"><a href="" class="fontSize14">AI图书</a></li>
  57. <li class="py-2 px-4 mx-3"><a href="" class="fontSize14">人工智能 </a></li>
  58. </ul>
  59. </nav>
  60. <!--导航栏滚动图片-->
  61. <section class="banner container-full overflow-hidden border border-box">
  62. <div class="d-flex w-300">
  63. <img src="../project/img/001.jpeg" alt="" class="w-100">
  64. <img src="../project/img/2.jpeg" class="w-100" alt="">
  65. <img src="../project/img/3.jpeg" class="w-100" alt="">
  66. </div>
  67. </section>
  68. <!--侧边栏-->
  69. <<aside class="posetion-fixed right-10 d-flex flex-column jusify-content-between">
  70. <div class="iconfont border p-3 bg-db cursor textColorRed120 icon-gouwuchekong"></div>
  71. <div class="iconfont border p-3 bg-db cursor textColorRed120 mt-1 icon-sousuo"></div>
  72. <div class="iconfont border p-3 bg-db cursor textColorRed120 mt-1 icon-31wode"></div>
  73. <div class="iconfont border p-3 bg-db cursor textColorRed120 mt-1 icon-erweima"></div>
  74. </aside>
  75. <!--三级导航栏-->
  76. <section class="container-full border-bottom">
  77. <section class="container py-1">
  78. <span><a href="" class="text-777 hover-a-none">首页</a></span>
  79. <span class="mx-3">/</span>
  80. <span><a href="" class="text-777 hover-a-none">编程书籍</a></span>
  81. <span class="mx-3">/</span>
  82. <span><a href="" class="text-777 hover-a-none">编程书籍</a></span>
  83. <span class="mx-3">/</span>
  84. <span>细说PHP</span>
  85. </section>
  86. </section>
  87. <!--商品图片及信息-->
  88. <section class="container d-flex jusify-content-between">
  89. <section class=" w-40 pl-4">
  90. <img src="./img/proDet01_big.jpg" alt="">
  91. <div>
  92. <img src="./img/proDet01.jpg" alt="">
  93. <img src="./img/proDet01.jpg" alt="">
  94. <img src="./img/proDet01.jpg" alt="">
  95. <img src="./img/proDet01.jpg" alt="">
  96. </div>
  97. </section>
  98. <section class=" w-50 d-flex flex-column">
  99. <section class="border-bottom pb-4">
  100. <h2 class="fontSize18">[细说] 细说PHP</h2>
  101. <p class="text-777 my-4">【破损补寄】【适合放室内、卧室、书房、餐桌、办公室、客厅、电视柜等地方】【无理由退换货】【包邮】【白色现代简约花瓶】</p>
  102. <p class="font-weight-bold pb-2 textColorRed120 fontSize16">¥ 159.00</p>
  103. </section>
  104. <section class="border-bottom py-2">
  105. <div>
  106. <p class="my-4">颜色分类</p>
  107. <div>
  108. <img src="./img/proDet01.jpg" class="w-10" alt="">
  109. <img src="./img/proDet01.jpg" class="w-10" alt="">
  110. <img src="./img/proDet01.jpg" class="w-10" alt="">
  111. <img src="./img/proDet01.jpg" class="w-10" alt="">
  112. </div>
  113. </div>
  114. <div class="my-4">
  115. <p class="py-2">数量 库存<span class="textColorRed120">2000</span></p>
  116. <div class="d-flex mb-4 align-items-center w-20">
  117. <div class="fontSize20 cursor border bg-white px-2">-</div>
  118. <div>
  119. <input type="text" size="1" name="" class="border-0 px-2 text-center" value="1">
  120. </div>
  121. <div class="py-1 border cursor bg-white px-2">+</div>
  122. </div>
  123. </div>
  124. </section>
  125. <section class="d-flex mt-4 pt-4 jusify-content-around">
  126. <button class="bg-white border px-4 w-30 py-2 bg-dark text-white fontSize12">立即购买</button>
  127. <button class="bg-white border px-4 w-30 py-3 fontSize12">加入购物车</button>
  128. </section>
  129. </section>
  130. </section>
  131. <!--商品详情及为你推荐-->
  132. <section class="container d-flex jusify-content-between align-content-start">
  133. <section class="w-90 border-box">
  134. <div class="w-90 d-flex border-box r-tobordep border-bottom">
  135. <span class="py-2 border-box border-bottom border-dark px-2">商品详情</span>
  136. <span class="mx-2 py-2 px-2">所有评价</span>
  137. </div>
  138. <div>
  139. <img src="./img/det01.jpg" alt="">
  140. <img src="./img/det01.jpg" alt="">
  141. <img src="./img/det01.jpg" alt="">
  142. <img src="./img/det01.jpg" alt="">
  143. <img src="./img/det01.jpg" alt="">
  144. </div>
  145. </section>
  146. <section class="w-20 border pb-4 h-10">
  147. <div class=" py-2 text-center bg-black-30">为你推荐</div>
  148. <div class="d-flex mt-2 flex-column jusify-content-between">
  149. <img src="./img/see01.jpg" class="w-80 m-auto" alt="">
  150. <p class="pl-4 my-2">【细说】细说PHP</p>
  151. <p class="pl-4 my-2">¥158.00</p>
  152. </div>
  153. <div class="d-flex mt-2 flex-column jusify-content-between">
  154. <img src="./img/see01.jpg" class="w-80 m-auto" alt="">
  155. <p class="pl-4 my-2">【细说】细说PHP</p>
  156. <p class="pl-4 my-2">¥158.00</p>
  157. </div>
  158. </section>
  159. </section>
  160. <!--猜你喜欢-->
  161. <section class="container-full p-4 bg-fbfb">
  162. <section class="text-center fontSize16 mb-4">猜你喜欢</section>
  163. <section class="fontSize d-flex jusify-content-between">
  164. <section class="w-10 d-flex fontSize50 opacity3 jusify-content-center align-items-center iconfont icon-xiangzuojiantou"></section>
  165. <section class="w-80 d-flex jusify-content-around">
  166. <section class="card border-0">
  167. <a href="">
  168. <img src="./img/like04.jpg" alt="">
  169. </a>
  170. <section class="card-body bg-fbfb">
  171. <p class="fontSize14">【细说】细说PHP</p>
  172. <p class="fontSize14 textColorRed120">¥158.00</p>
  173. </section>
  174. </section>
  175. <section class="card border-0">
  176. <a href="">
  177. <img src="./img/like04.jpg" alt="">
  178. </a>
  179. <section class="card-body bg-fbfb">
  180. <p class="fontSize14">【细说】细说PHP</p>
  181. <p class="fontSize14 textColorRed120">¥158.00</p>
  182. </section>
  183. </section>
  184. <section class="card border-0">
  185. <a href="">
  186. <img src="./img/like04.jpg" alt="">
  187. </a>
  188. <section class="card-body bg-fbfb">
  189. <p class="fontSize14">【细说】细说PHP</p>
  190. <p class="fontSize14 textColorRed120">¥158.00</p>
  191. </section>
  192. </section>
  193. <section class="card border-0">
  194. <a href="">
  195. <img src="./img/like04.jpg" alt="">
  196. </a>
  197. <section class="card-body bg-fbfb">
  198. <p class="fontSize14">【细说】细说PHP</p>
  199. <p class="fontSize14 textColorRed120">¥158.00</p>
  200. </section>
  201. </section>
  202. </section>
  203. <section class="w-10 d-flex fontSize50 opacity3 textColordb jusify-content-center align-items-center iconfont icon-xiangyoujiantou"></section>
  204. </section>
  205. </section>
  206. <!--底部标签-->
  207. <footer class="container-full border-top mt-4 ">
  208. <section class="container d-flex my-2 jusify-content-around align-items-center">
  209. <div class="border-right py-1 flex-grow1 px-2 pr-4 d-flex jusify-content-center align-items-center">
  210. <img src="./img/foot1.png" alt="">
  211. <p class="pl-1 ml-2 pr-4">7天无理由退货</p>
  212. </div>
  213. <div class="border-right py-1 flex-grow1 px-2 pr-4 d-flex jusify-content-center align-items-center">
  214. <img src="./img/foot1.png" alt="">
  215. <p class="pl-1 ml-2 pr-4">7天无理由退货</p>
  216. </div>
  217. <div class="border-right py-1 flex-grow1 px-2 pr-4 d-flex jusify-content-center align-items-center">
  218. <img src="./img/foot1.png" alt="">
  219. <p class="pl-1 ml-2 pr-4">7天无理由退货</p>
  220. </div>
  221. <div class=" py-1 flex-grow1 px-2 pr-4 d-flex jusify-content-center align-items-center">
  222. <img src="./img/foot1.png" alt="">
  223. <p class="pl-1 ml-2 pr-4">7天无理由退货</p>
  224. </div>
  225. </section>
  226. <section class="bg-black text-center py-3">
  227. <p class="text-white">最家家居©2013-2017公司版权所有 京ICP备080100-44备0000111000号<br/>
  228. 违法和不良信息举报电话:400-800-8200,本网站所列数据,除特殊说明,所有数据均出自我司实验室测试</p>
  229. </section>
  230. </footer>
  231. </body>
  232. </html>


声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议