boxFlex1.vue 732 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <div class="acticle_1">
  3. <section>01</section>
  4. <section>02</section>
  5. <section>03</section>
  6. </div>
  7. </template>
  8. <style>
  9. .acticle_1 {
  10. display: box;
  11. display: -moz-box;
  12. display: -webkit-box;
  13. width: 100%;
  14. height: 50px;
  15. }
  16. .acticle_1 section {
  17. line-height: 50px;
  18. text-align: center;
  19. color: #fff;
  20. text-shadow: 1px 1px 1px rgb(0, 0, 0);
  21. }
  22. .acticle_1 section:nth-child(1) {
  23. background: orange;
  24. -moz-box-flex: 2;
  25. -webkit-box-flex: 2;
  26. box-flex: 2;
  27. }
  28. .acticle_1 section:nth-child(2) {
  29. background: purple;
  30. -moz-box-flex: 2;
  31. -webkit-box-flex: 2;
  32. box-flex: 2;
  33. }
  34. .acticle_1 section:nth-child(3) {
  35. -moz-box-flex: 2;
  36. -webkit-box-flex: 2;
  37. box-flex: 2;
  38. background: green;
  39. }
  40. </style>