boxFlex3.vue 713 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <template>
  2. <div class="acticle_3">
  3. <section>01</section>
  4. <section>02</section>
  5. <section>03</section>
  6. </div>
  7. </template>
  8. <style>
  9. .acticle_3{
  10. display: box;
  11. display: -moz-box;
  12. display: -webkit-box;
  13. width: 100%;
  14. height: 50px;
  15. }
  16. .acticle_3 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_3 section:nth-child(1){
  23. background:orange;
  24. -moz-box-flex:2;
  25. -webkit-box-flex:2;
  26. box-flex:2;
  27. }
  28. .acticle_3 section:nth-child(2){
  29. background:purple;
  30. -moz-box-flex:2;
  31. -webkit-box-flex:2;
  32. box-flex:2;
  33. /*添加margin属性*/
  34. margin:0 50px;
  35. }
  36. .acticle_3 section:nth-child(3){
  37. width:200px;
  38. background:green;
  39. }
  40. </style>