HTML5 flexible box model height calculation

后端 未结 3 1187
走了就别回头了
走了就别回头了 2020-11-30 02:21

after researching the flexible box model for a whole day, I must say I really like it. It implements the functionality I implement in JavaScript in a fast and clean way. One

3条回答
  •  旧巷少年郎
    2020-11-30 03:23

    You must also make the div you want to expand a flex-box as well and add a flex value. This fixes the problem.

    #fullsize{
        background-color: red;
    
        display: -webkit-box;
        display: box;
        display: -moz-box;
    
        box-flex:1;
        -webkit-box-flex:1;
        -moz-box-flex:1;
    }
    

提交回复
热议问题