percentage height in nested flex box

后端 未结 1 1622
我在风中等你
我在风中等你 2021-01-06 18:42

I\'ve got a pretty good adjustable interface working with flexbox where a user can adjust the height and width of panels. However, I want to change the panel heights, which

相关标签:
1条回答
  • 2021-01-06 19:03

    You need to add a height to your right column:

    http://jsfiddle.net/59trW/2/

    .flex {
        display: flex;
        flex:1;
        flex-direction: column;
        background-color: #64b92a;
        height: 100%; /* here */
    }
    

    Also, -webkit-box-align: stretch is doing nothing for you because it comes from the old 2009 draft (which you aren't even using here), not the current spec (also, stretch is the default value for that property).

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