boxOrient2.vue 781 B

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