Blogger Information
Blog 11
fans 0
comment 0
visits 8056
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
结算页仿写--PHP培训第十期线上班
宋明杰
Original
678 people have browsed it

结算页面仿写:

HTML代码:

  1. <body>
  2. <div class="js">
  3. <div class="js-1">
  4. <a href="#"><img src="../img/logo.png" alt=""></a>
  5. <span>结算页</span>
  6. </div>
  7. <div class="js-2">
  8. <div class="js-2a">
  9. <span>确认收货地址</span>
  10. <span>管理收货地址</span>
  11. </div>
  12. <div class="js-2b">
  13. <div class="js-2b1">
  14. <span><i class="iconfont icon-icon-test6"></i> 寄送至:</span>
  15. </div>
  16. <div class="js-2b2">
  17. <div>
  18. <input type="radio" name="dizhi" id="dizhi">
  19. <label for="dizhi">四川省 成都市 高新区 天府三街228号 (张三 收)13900009999</label>
  20. </div>
  21. <div>
  22. <input type="radio" name="dizhi" id="dizhi">
  23. <label for="dizhi">四川省 成都市 高新区 天府三街228号 (张三 收)13900009999</label>
  24. </div>
  25. <div>
  26. <input type="radio" name="dizhi" id="dizhi">
  27. <label for="dizhi">四川省 成都市 高新区 天府三街228号 (张三 收)13900009999</label>
  28. </div>
  29. <div>
  30. <input type="radio" name="dizhi" id="dizhi">
  31. <label for="dizhi">四川省 成都市 高新区 天府三街228号 (张三 收)13900009999</label>
  32. </div>
  33. <span>使用其他地址</span>
  34. </div>
  35. </div>
  36. </div>
  37. <div class="js-3">
  38. <div class="js-3a">
  39. <span class="bt1">确认订单信息</span>
  40. <span>宝贝信息</span>
  41. <span>商品属性</span>
  42. <span>单价</span>
  43. <span>数量</span>
  44. <span>优惠</span>
  45. <span>小计</span>
  46. </div>
  47. <div class="js-3b">
  48. <div class="js-3b1">
  49. <a href="#"><img src="../img/33.jpg" </a>
  50. <a href=""><span>移动固态硬盘500g苹果mac电脑type-c外置BOOT CAMP便携SSD</span></a>
  51. <span>颜色分类:256G[WTG]</span>
  52. <span>399.00</span>
  53. <span>1</span>
  54. <span>省170:爆款特卖</span>
  55. <span class="heji">229.00</span>
  56. </div>
  57. <div class="js-3b2">
  58. <span>给卖家留言:</span>
  59. <textarea>选填,请先和卖家协商一致</textarea>
  60. <span>运送方式:</span>
  61. <span>普通配送 快递费:15.00</span>
  62. <span class="heji">15.00</span>
  63. </div>
  64. <div class="js-3b3">
  65. <span>单款合计(含运费)</span>
  66. <span>¥260.00</span>
  67. </div>
  68. </div>
  69. <div class="js-3b">
  70. <div class="js-3b1">
  71. <a href="#"><img src="../img/33.jpg" </a>
  72. <a href=""><span>移动固态硬盘500g苹果mac电脑type-c外置BOOT CAMP便携SSD</span></a>
  73. <span>颜色分类:256G[WTG]</span>
  74. <span>399.00</span>
  75. <span>1</span>
  76. <span>省170:爆款特卖</span>
  77. <span class="heji">229.00</span>
  78. </div>
  79. <div class="js-3b2">
  80. <span>给卖家留言:</span>
  81. <textarea>选填,请先和卖家协商一致</textarea>
  82. <span>运送方式:</span>
  83. <span>普通配送 快递费:15.00</span>
  84. <span class="heji">15.00</span>
  85. </div>
  86. <div class="js-3b3">
  87. <span>单款合计(含运费)</span>
  88. <span>¥260.00</span>
  89. </div>
  90. </div>
  91. <div class="js-3b">
  92. <div class="js-3b1">
  93. <a href="#"><img src="../img/33.jpg" </a>
  94. <a href=""><span>移动固态硬盘500g苹果mac电脑type-c外置BOOT CAMP便携SSD</span></a>
  95. <span>颜色分类:256G[WTG]</span>
  96. <span>399.00</span>
  97. <span>1</span>
  98. <span>省170:爆款特卖</span>
  99. <span class="heji">229.00</span>
  100. </div>
  101. <div class="js-3b2">
  102. <span>给卖家留言:</span>
  103. <textarea>选填,请先和卖家协商一致</textarea>
  104. <span>运送方式:</span>
  105. <span>普通配送 快递费:15.00</span>
  106. <span class="heji">15.00</span>
  107. </div>
  108. <div class="js-3b3">
  109. <span>单款合计(含运费)</span>
  110. <span>¥260.00</span>
  111. </div>
  112. </div>
  113. </div>
  114. <div class="js-4">
  115. <div class="js-4a">
  116. <div>
  117. <span class="js41">实付款:</span>
  118. <span class="js42">¥3588.88</span>
  119. </div>
  120. <div>
  121. <span class="js41">寄送至:</span>
  122. <span class="js43">四川省 成都市 高新区 天府三街228号6栋6楼</span>
  123. </div>
  124. <div>
  125. <span class="js41">收货人:</span>
  126. <span class="js43">张三 13900009999</span>
  127. </div>
  128. <div class="js-4b">
  129. <!-- <a class="js45">返回购物车</a>-->
  130. <input type="button" class="js45" value="返回物车">
  131. <button class="js46">提交订单</button>
  132. </div>
  133. </div>
  134. </div>
  135. </div>
  136. </body>

CSS代码:

  1. @import "../zujian_reset.css";
  2. *{
  3. /*border: 1px solid red;*/
  4. letter-spacing: 1px;
  5. }
  6. .js{
  7. width: 1000px;
  8. margin: auto;
  9. /*border: 1px solid red;*/
  10. }
  11. .js > .js-1{
  12. height: 60px;
  13. display: flex;
  14. align-items: flex-end;
  15. }
  16. .js > .js-1 img{
  17. height: 60px;
  18. display: block;
  19. }
  20. .js > .js-1 span{
  21. font-size: 20px;
  22. color: #333333;
  23. margin-left: 8px;
  24. }
  25. .js > .js-2 > .js-2a{
  26. display: flex;
  27. justify-content: space-between;
  28. margin-top: 25px;
  29. padding-bottom: 3px;
  30. border-bottom: 2px solid #999999;
  31. /*letter-spacing: 1px;*/
  32. }
  33. .js > .js-2 > .js-2a span:first-of-type{
  34. font-size: 14px;
  35. }
  36. .js > .js-2 > .js-2a span:last-of-type{
  37. font-size: 10px;
  38. color: #0077aa;
  39. align-self: flex-end;
  40. }
  41. .js > .js-2 > .js-2b{
  42. display: flex;
  43. margin:10px
  44. }
  45. .js > .js-2 > .js-2b > .js-2b1{
  46. color: red;
  47. font-size: 12px;
  48. margin-right: 5px;
  49. }
  50. .js > .js-2 > .js-2b > .js-2b2{
  51. display: flex;
  52. flex-direction: column;
  53. font-size: 12px;
  54. }
  55. .js > .js-2 > .js-2b > .js-2b2 div{
  56. margin: 3px 0;
  57. }
  58. .js > .js-2 > .js-2b > .js-2b2 span{
  59. margin-top: 8px;
  60. color: #0077aa;
  61. }
  62. .js > .js-3 > .js-3a{
  63. margin-top: 20px;
  64. border-bottom: 1px solid #999999;
  65. display: grid;
  66. grid-template: "a1 a1 a1 a1 a1 a1 " 30px
  67. "b1 b2 b3 b4 b5 b6 " 20px
  68. /3fr 1.5fr 1fr 1fr 1.5fr 1fr;
  69. }
  70. .js > .js-3 > .js-3a span{
  71. font-size: 11px;
  72. margin-left: 15px;
  73. }
  74. .js > .js-3 > .js-3a > .bt1 {
  75. grid-area: a1;
  76. font-size: 14px;
  77. margin: 0;
  78. }
  79. .js > .js-3 > .js-3b > .js-3b1{
  80. margin-top: 20px;
  81. padding: 10px 0;
  82. box-sizing: border-box;
  83. background: #f0f6ff;
  84. grid-column-gap: 3px;
  85. border-top: 1px dashed #b3d4fc;
  86. /*border-bottom: 1px dashed #b3d4fc;*/
  87. display: grid;
  88. grid-template: "a1 a2 a3 a4 a5 a6 a7" 70px
  89. /0.8fr 2.2fr 1.5fr 1fr 1fr 1.5fr 1fr;
  90. }
  91. .js > .js-3 > .js-3b > .js-3b1 img{
  92. width: 70px;
  93. height: 70px;
  94. margin-left: 10px;
  95. }
  96. .js > .js-3 > .js-3b > .js-3b1 span{
  97. font-size: 13px;
  98. color: #333333;
  99. }
  100. .js > .js-3 > .js-3b > .js-3b1 > .heji{
  101. font-size: 18px;
  102. color: red;
  103. }
  104. .js > .js-3 > .js-3b > .js-3b2{
  105. margin-top: 3px;
  106. padding: 10px;
  107. box-sizing: border-box;
  108. background: #f0f6ff;
  109. grid-column-gap: 5px;
  110. display: grid;
  111. grid-template: "a1 a2 a3 a4 a5" 60px
  112. /1fr 4fr 1fr 3fr 1fr;
  113. }
  114. .js > .js-3 > .js-3b > .js-3b2{
  115. font-size: 13px;
  116. color: #333333;
  117. }
  118. .js > .js-3 > .js-3b > .js-3b2 :nth-of-type(2){
  119. place-self: start end;
  120. }
  121. .js > .js-3 > .js-3b > .js-3b2 > .heji {
  122. font-size: 18px;
  123. color: red;
  124. }
  125. .js > .js-3 > .js-3b > .js-3b2 textarea{
  126. width: 350px;
  127. height: 60px;
  128. color: #999999;
  129. font-size: 11px;
  130. text-indent: 1em;
  131. resize: none;
  132. }
  133. .js > .js-3 > .js-3b > .js-3b3 {
  134. margin-top: 3px;
  135. padding: 20px;
  136. box-sizing: border-box;
  137. background: #f0f6ff;
  138. border-bottom: 1px dashed #b3d4fc;
  139. display: flex;
  140. justify-content: flex-end;
  141. }
  142. .js > .js-3 > .js-3b > .js-3b3 span {
  143. font-size: 15px;
  144. color: #333333;
  145. width: 160px;
  146. }
  147. .js > .js-3 > .js-3b > .js-3b3 :last-of-type{
  148. font-size: 18px;
  149. color: red;
  150. width: 95px;
  151. }
  152. .js > .js-4{
  153. display: flex;
  154. flex-direction: column;
  155. margin: 20px 0;
  156. border-top: 1px solid #666666;
  157. /*justify-content: flex-end;*/
  158. }
  159. .js > .js-4 > .js-4a{
  160. display: flex;
  161. margin-top: 15px;
  162. align-self: flex-end;
  163. flex-direction: column;
  164. border: 1px solid red;
  165. width: 360px;
  166. height: 100%;
  167. }
  168. .js > .js-4 > .js-4a div{
  169. display: flex;
  170. justify-content: flex-end;
  171. margin-top: 8px;
  172. }
  173. .js > .js-4 > .js-4a div > .js41{
  174. font-size: 13px;
  175. color: #333333;
  176. align-self: center;
  177. }
  178. .js > .js-4 > .js-4a div > .js42{
  179. font-size: 26px;
  180. color: red;
  181. margin-right: 5px;
  182. }
  183. .js > .js-4 > .js-4a div > .js43 {
  184. font-size: 12px;
  185. color: #666666;
  186. margin-right: 5px;
  187. }
  188. .js > .js-4 > .js-4a >.js-4b > .js45{
  189. color: dodgerblue;
  190. width: 50%;
  191. height: 35px;
  192. border: none;
  193. border-top: 1px solid red;
  194. }
  195. .js > .js-4 > .js-4a > .js-4b > .js46{
  196. font-size: 18px;
  197. width: 50%;
  198. height: 35px;
  199. color: #ffffff;
  200. background: red;
  201. border: 1px solid red;
  202. }

运行结果截图:

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!