Blogger Information
Blog 9
fans 0
comment 0
visits 6788
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
京东商城flex结构实例演示
guyuqing
Original
524 people have browsed it

页面显示

代码

html

  1. <div class="ms">
  2. <div class="ms-top">
  3. <div class="left">
  4. <div class="title">京东秒杀</div>
  5. <div class="notice">
  6. <div class="tips">20点场</div>
  7. <div class="time">00:47:20</div>
  8. </div>
  9. </div>
  10. <div class="right">更多秒杀</div>
  11. </div>
  12. <ul class="ms-body">
  13. <li class="item">
  14. <a href=""><img src="static/images/ms/ms-3.jpg" alt=""></a>
  15. <div class="iconfont icon-rmb">9.9</div>
  16. <div class="iconfont icon-rmb">28.8</div>
  17. </li>
  18. <li class="item">
  19. <a href=""><img src="static/images/ms/ms-4.jpg" alt=""></a>
  20. <div class="iconfont icon-rmb">29</div>
  21. <div class="iconfont icon-rmb">65</div>
  22. </li>
  23. <li class="item">
  24. <a href=""><img src="static/images/ms/ms-5.jpg" alt=""></a>
  25. <div class="iconfont icon-rmb">84</div>
  26. <div class="iconfont icon-rmb">168</div>
  27. </li>
  28. <li class="item">
  29. <a href=""><img src="static/images/ms/ms-6.jpg" alt=""></a>
  30. <div class="iconfont icon-rmb">55</div>
  31. <div class="iconfont icon-rmb">165</div>
  32. </li>
  33. </ul>
  34. </div>

css

  1. .main .ms{
  2. background-color: white;
  3. padding:1rem;
  4. margin:1rem 1.8em;
  5. border: 1px solid #fafafa;
  6. border-radius: 1rem;
  7. }
  8. .main .ms .ms-top {
  9. height: 3rem;
  10. display: flex;
  11. justify-content: space-between;
  12. }
  13. .main .ms .ms-top .left {
  14. display: flex;
  15. }
  16. .main .ms .ms-top .left .notice {
  17. display: flex;
  18. height: 2rem;
  19. margin:0 1.5rem;
  20. border: 1px solid #e43130;
  21. border-radius: 2rem;
  22. justify-content: center;
  23. align-items: center;
  24. }
  25. .main .ms .ms-top .left .notice .tips {
  26. background-color: #e43130;
  27. color: #fff;
  28. border-radius: 2rem;
  29. padding: 0.3rem 0.5rem;
  30. }
  31. .main .ms .ms-top .right {
  32. color: #e43130;
  33. font-size: 1.2rem;
  34. }
  35. .main .ms .ms-body {
  36. display: flex;
  37. justify-content: space-between;
  38. }
  39. .main .ms .ms-body .item {
  40. display: flex;
  41. flex-flow: column nowrap;
  42. align-items: center;
  43. }
  44. .main .ms .ms-body .item img {
  45. height: 12rem;
  46. width: 12rem;
  47. }
  48. .main .ms .ms-body .item div:first-of-type {
  49. color: #e43130;
  50. font-weight: bolder;
  51. }
  52. .main .ms .ms-body .item div:last-of-type {
  53. color: grey;
  54. font-weight: bolder;
  55. text-decoration-line: line-through;
  56. text-decoration-color: #666;
  57. }
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!