Blogger Information
Blog 19
fans 0
comment 0
visits 9874
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
淘宝移动端首页商品列表
newbie
Original
402 people have browsed it

商品列表

效果图


代码部分

  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7. <link
  8. rel="stylesheet"
  9. href="//at.alicdn.com/t/font_3280490_h5yvhuo3zq5.css"
  10. />
  11. <link rel="stylesheet" href="/0403/1/css/rest.css" />
  12. <link rel="stylesheet" href="/0403/1/css/heard.css" />
  13. <link rel="stylesheet" href="/0403/1/css/footer.css" />
  14. <link rel="stylesheet" href="/0403/1/css/main.css" />
  15. <title>Document</title>
  16. </head>
  17. <body>
  18. <header>
  19. <div class="top">
  20. <div class="iconfont icon-tao"></div>
  21. <a href="" class="iconfont icon-search">寻找宝贝店铺</a>
  22. </div>
  23. </header>
  24. <main>
  25. <div class="lunbo"><img src="/0403/1/images/top.jpg" /></div>
  26. <div class="daohang">
  27. <a href="">
  28. <div class="itme1">
  29. <img src="/0403/1/images/tianmao.png" alt="" /><span>天猫新品</span>
  30. </div> </a
  31. ><a href="">
  32. <div class="itme1">
  33. <img src="/0403/1/images/tianmao.png" alt="" /><span>天猫新品</span>
  34. </div> </a
  35. ><a href="">
  36. <div class="itme1">
  37. <img src="/0403/1/images/tianmao.png" alt="" /><span>天猫新品</span>
  38. </div> </a
  39. ><a href="">
  40. <div class="itme1">
  41. <img src="/0403/1/images/tianmao.png" alt="" /><span>天猫新品</span>
  42. </div> </a
  43. ><a href="">
  44. <div class="itme1">
  45. <img src="/0403/1/images/tianmao.png" alt="" /><span>天猫新品</span>
  46. </div> </a
  47. ><a href="">
  48. <div class="itme1">
  49. <img src="/0403/1/images/tianmao.png" alt="" /><span>天猫新品</span>
  50. </div> </a
  51. ><a href="">
  52. <div class="itme1">
  53. <img src="/0403/1/images/tianmao.png" alt="" /><span>天猫新品</span>
  54. </div> </a
  55. ><a href="">
  56. <div class="itme1">
  57. <img src="/0403/1/images/tianmao.png" alt="" /><span>天猫新品</span>
  58. </div>
  59. </a>
  60. <a href="">
  61. <div class="itme1">
  62. <img src="/0403/1/images/tianmao.png" alt="" /><span>天猫新品</span>
  63. </div>
  64. </a>
  65. <a href="">
  66. <div class="itme1">
  67. <img src="/0403/1/images/tianmao.png" alt="" /><span>天猫新品</span>
  68. </div>
  69. </a>
  70. </div>
  71. <div class="huakuai"></div>
  72. <div class="cnxh"><img src="/0403/1/images/cainixihuan.png" /></div>
  73. <div class="splb">
  74. <a href="">
  75. <div class="sp">
  76. <img
  77. src="/0403/1/images/O1CN01RFdVG02Ca0x1aTC3E_!!0-item_pic.jpg_320x320q90.jpg"
  78. />
  79. <div class="jj">
  80. <span class="biaoti"
  81. >【24期免息】HP惠普光影精灵7 11代酷睿i5/i7可选</span
  82. >
  83. <div>
  84. <span class="jg iconfont icon-renminbi_o">6,799</span>
  85. <span class="rs">67人已购买</span>
  86. </div>
  87. </div>
  88. </div>
  89. </a>
  90. <a href="">
  91. <div class="sp">
  92. <img
  93. src="/0403/1/images/O1CN01RFdVG02Ca0x1aTC3E_!!0-item_pic.jpg_320x320q90.jpg"
  94. />
  95. <div class="jj">
  96. <span class="biaoti"
  97. >【24期免息】HP惠普光影精灵7 11代酷睿i5/i7可选</span
  98. >
  99. <div>
  100. <span class="jg iconfont icon-renminbi_o">6,799</span>
  101. <span class="rs">67人已购买</span>
  102. </div>
  103. </div>
  104. </div>
  105. </a>
  106. <a href="">
  107. <div class="sp">
  108. <img
  109. src="/0403/1/images/O1CN01RFdVG02Ca0x1aTC3E_!!0-item_pic.jpg_320x320q90.jpg"
  110. />
  111. <div class="jj">
  112. <span class="biaoti"
  113. >【24期免息】HP惠普光影精灵7 11代酷睿i5/i7可选</span
  114. >
  115. <div>
  116. <span class="jg iconfont icon-renminbi_o">6,799</span>
  117. <span class="rs">67人已购买</span>
  118. </div>
  119. </div>
  120. </div>
  121. </a>
  122. <a href="">
  123. <div class="sp">
  124. <img
  125. src="/0403/1/images/O1CN01RFdVG02Ca0x1aTC3E_!!0-item_pic.jpg_320x320q90.jpg"
  126. />
  127. <div class="jj">
  128. <span class="biaoti"
  129. >【24期免息】HP惠普光影精灵7 11代酷睿i5/i7可选</span
  130. >
  131. <div>
  132. <span class="jg iconfont icon-renminbi_o">6,799</span>
  133. <span class="rs">67人已购买</span>
  134. </div>
  135. </div>
  136. </div>
  137. </a>
  138. <a href="">
  139. <div class="sp">
  140. <img
  141. src="/0403/1/images/O1CN01RFdVG02Ca0x1aTC3E_!!0-item_pic.jpg_320x320q90.jpg"
  142. />
  143. <div class="jj">
  144. <span class="biaoti"
  145. >【24期免息】HP惠普光影精灵7 11代酷睿i5/i7可选</span
  146. >
  147. <div>
  148. <span class="jg iconfont icon-renminbi_o">6,799</span>
  149. <span class="rs">67人已购买</span>
  150. </div>
  151. </div>
  152. </div>
  153. </a>
  154. <a href="">
  155. <div class="sp">
  156. <img
  157. src="/0403/1/images/O1CN01RFdVG02Ca0x1aTC3E_!!0-item_pic.jpg_320x320q90.jpg"
  158. />
  159. <div class="jj">
  160. <span class="biaoti"
  161. >【24期免息】HP惠普光影精灵7 11代酷睿i5/i7可选</span
  162. >
  163. <div>
  164. <span class="jg iconfont icon-renminbi_o">6,799</span>
  165. <span class="rs">67人已购买</span>
  166. </div>
  167. </div>
  168. </div>
  169. </a>
  170. <a href="">
  171. <div class="sp">
  172. <img
  173. src="/0403/1/images/O1CN01RFdVG02Ca0x1aTC3E_!!0-item_pic.jpg_320x320q90.jpg"
  174. />
  175. <div class="jj">
  176. <span class="biaoti"
  177. >【24期免息】HP惠普光影精灵7 11代酷睿i5/i7可选</span
  178. >
  179. <div>
  180. <span class="jg iconfont icon-renminbi_o">6,799</span>
  181. <span class="rs">67人已购买</span>
  182. </div>
  183. </div>
  184. </div>
  185. </a>
  186. </div>
  187. </main>
  188. <footer>
  189. <div class="taobaotubiao">
  190. <a href="" class="iconfont icon-taobao taobao"></a>
  191. </div>
  192. <a href="" class="iconfont icon-gouwuche"
  193. ><div class="gouwu">购物车</div></a
  194. >
  195. <a href="" class="iconfont icon-my"><div class="wode">我的淘宝</div></a>
  196. </footer>
  197. </body>
  198. </html>

css代码
  1. main {
  2. width: 100vw;
  3. position: relative;
  4. top: 0.37rem;
  5. }
  6. main .lunbo img {
  7. width: 100%;
  8. height: 100%;
  9. }
  10. main .daohang {
  11. display: grid;
  12. grid-template-columns: repeat(5, 1fr);
  13. grid-template-rows: repeat(2, 1fr);
  14. background-color: white;
  15. }
  16. main .daohang img {
  17. width: 0.61rem;
  18. height: 0.48rem;
  19. }
  20. main .daohang div {
  21. display: grid;
  22. grid-template-rows: 2, 1fr;
  23. place-items: center;
  24. }
  25. main .daohang span {
  26. font-size: 0.12rem;
  27. line-height: 15px;
  28. margin-top: 0.04rem;
  29. }
  30. .huakuai {
  31. width: 100vw;
  32. height: 0.2rem;
  33. background-color: white;
  34. }
  35. .cnxh {
  36. width: 100vw;
  37. height: 0.47rem;
  38. text-align: center;
  39. padding-top: 0.12rem;
  40. }
  41. .cnxh img {
  42. width: 1.61rem;
  43. height: 0.19rem;
  44. }
  45. main .splb {
  46. display: grid;
  47. grid-template-columns: repeat(2, 1fr);
  48. padding: 0rem 0.075rem 0.12rem;
  49. grid-template-rows: auto;
  50. gap: 0.09rem;
  51. }
  52. main .sp {
  53. display: grid;
  54. grid-template-rows: 1.71rem 1fr;
  55. font-size: 0.13rem;
  56. border-radius: 0.05rem;
  57. background-color: white;
  58. height: 2.6rem;
  59. }
  60. .jj {
  61. margin-top: 0.12rem;
  62. display: grid;
  63. grid-template-rows: 1fr 0.41rem;
  64. }
  65. main .sp img {
  66. width: 100%;
  67. height: 100%;
  68. border-radius: 0.05rem 0.05rem 0 0;
  69. }
  70. .jg {
  71. color: #ff5500;
  72. font-size: 0.14rem;
  73. }
  74. .rs {
  75. color: #999999;
  76. font-size: 0.12rem;
  77. font-family: "微软雅黑";
  78. }
  79. .jj {
  80. padding: 0 0.09rem 0 0.1rem;
  81. }
  82. main .jj .biaoti {
  83. margin-bottom: 0.15rem;
  84. }
Correcting teacher:PHPzPHPz

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