“rowspan” behavior with flexbox

前端 未结 1 1080
闹比i
闹比i 2020-12-19 01:23

Given this markup :

<
相关标签:
1条回答
  • 2020-12-19 02:23

    is this what you are looking for?

    .foo {
      display: flex;
      flex-wrap: wrap;
      flex-direction: column;
      height: 200px;
    }
    
    .a, .c {
      flex: 0 0 50%;
      background: green;
    }
    
    .b {
      flex: 0 0 100%;
      order: 1;
      background: blue;
    }
    .c {
      background: red;
    }
    

    Quick codepen sample with -webkit- prefixes

    UPDATE! Tuned pen with landscape/portrait ratios

    0 讨论(0)
提交回复
热议问题