index.html 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>极速驾培商品</title>
  7. <style type="text/css">
  8. * {
  9. padding: 0;
  10. margin: 0;
  11. box-sizing: content-box;
  12. }
  13. .flex {
  14. display: flex;
  15. }
  16. .inline-block {
  17. display: inline-block;
  18. }
  19. .w-full {
  20. width: 100%;
  21. }
  22. .w466 {
  23. width: 466px;
  24. }
  25. .mt44 {
  26. margin-top: 44px;
  27. }
  28. .mt109 {
  29. margin-top: 109px;
  30. }
  31. .ml360 {
  32. margin-left: 360px;
  33. }
  34. .ml40 {
  35. margin-left: 40px;
  36. }
  37. .ml48{
  38. margin-left: 48px;
  39. }
  40. .mr20 {
  41. margin-right: 20px;
  42. }
  43. .ml25 {
  44. margin-left: 25px;
  45. }
  46. .w28 {
  47. width: 28px;
  48. }
  49. .font30 {
  50. font-size: 30px;
  51. }
  52. .font40 {
  53. font-size: 40px;
  54. }
  55. .font-blod {
  56. font-weight: bold;
  57. }
  58. .text-red {
  59. color: red;
  60. }
  61. .align-middle {
  62. vertical-align: middle;
  63. }
  64. .pr15 {
  65. padding-right: 15px;
  66. }
  67. .pl15 {
  68. padding-left: 15px;
  69. }
  70. .pt8 {
  71. padding-top: 8px;
  72. }
  73. .pb8 {
  74. padding-bottom: 8px;
  75. }
  76. .mt8 {
  77. margin-top: 8px;
  78. }
  79. .mt50 {
  80. margin-top: 50px;
  81. }
  82. .h50 {
  83. height: 50px;
  84. }
  85. .lh50 {
  86. line-height: 50px;
  87. }
  88. .w45 {
  89. width: 45px;
  90. }
  91. .text-center {
  92. text-align: center;
  93. }
  94. .w54 {
  95. width: 54px;
  96. }
  97. .w120 {
  98. width: 120px;
  99. }
  100. .w214 {
  101. width: 214px;
  102. }
  103. .w282 {
  104. width: 282px;
  105. }
  106. .w1102 {
  107. width: 1102px;
  108. }
  109. .round5 {
  110. border-radius: 5px;
  111. }
  112. </style>
  113. </head>
  114. <body>
  115. <div>
  116. <div class="mt109 ml360 flex">
  117. <div class="w28 mr20">
  118. <img src="./img/mini_good1.png" class="w-full">
  119. <img src="./img/mini_good2.png" class="w-full">
  120. <img src="./img/mini_good3.png" class="w-full">
  121. <img src="./img/mini_good4.png" class="w-full">
  122. <img src="./img/mini_good5.png" class="w-full">
  123. </div>
  124. <img class="w466" src="./img/good1.png">
  125. <div class="ml25">
  126. <span class="font30 font-blod">福州 | 华威夜间模拟灯光全套(东南V5)</span>
  127. <div class="align-middle">
  128. <span>价格:</span><span class="font40 text-red">¥ 35.00</span>
  129. </div>
  130. <div class=" mt8">
  131. <div>规格:<div style="
  132. border: 1px solid #5C6066;display: inline-block;" class="pr15 pl15 pt8 pb8">考场视频</div>
  133. <div style="
  134. border: 1px solid red;display: inline-block;color: red;" class="pr15 pl15 pt8 pb8">考场视频</div>
  135. </div>
  136. </div>
  137. <div class=" mt8 flex round5">
  138. <span class="lh50">数量:</span>
  139. <div class="h50 flex lh50">
  140. <div onclick="reduceQuantity1()" style="
  141. border: 1px solid #5C6066;border-top-left-radius: 5px;border-bottom-left-radius: 5px;cursor: pointer;"
  142. class="w45 h50 text-center inline-block ">-</div>
  143. <input value="1" class="w54 h50 inline-block text-center"
  144. style="border: 1px solid #5C6066;outline: none;border-left: none;border-right: none;"
  145. type="text" name="" id="quantity1">
  146. <div onclick="addQuantity1()" style="
  147. border: 1px solid #5C6066;border-top-right-radius: 5px;border-bottom-right-radius: 5px;cursor: pointer;"
  148. class="w45 h50 text-center inline-block">+</div>
  149. <span class="ml40">库存充足</span>
  150. </div>
  151. </div>
  152. <div class="mt44">
  153. <img class="w214" src="./img/btn1.png">
  154. <img class="w282" src="./img/btn2.png">
  155. </div>
  156. </div>
  157. </div>
  158. <div class="ml360 mt50">
  159. <div>
  160. <img class="w120" src="./img/good_detail1.png">
  161. </div>
  162. <div class="ml48 mt50"> <img class="w1102" src="./img/good_detail2.png"></div>
  163. </div>
  164. </div>
  165. </body>
  166. <script>
  167. function addQuantity1(){
  168. document.getElementById('quantity1').value =Number( document.getElementById('quantity1').value)+1+''
  169. }
  170. function reduceQuantity1(){
  171. if(Number( document.getElementById('quantity1').value)==0){
  172. document.getElementById('quantity1').value='0'
  173. return
  174. }
  175. document.getElementById('quantity1').value =Number( document.getElementById('quantity1').value)-1+''
  176. }
  177. </script>
  178. </html>