如何使flexbox儿童的父母身高达到100%? [英] How to make flexbox children 100% height of their parent?
问题描述
.container {height:200px;宽度:500px;显示:-moz-box;显示:-webkit-flexbox;显示:-ms-flexbox;显示:-webkit-flex;显示:-moz-flex;显示:flex; -webkit-flex-direction:row; -moz-flex-direction:row; -ms-flex-direction:row; flex-direction:row;}。flex-1 {width:100px; background-color:blue;}。flex-2 {position:relative; -moz-box-flex:1; -webkit-flex:1; -moz-flex:1; -ms-flex:1; flex:1; flex-2-child {height:100%; background-color:red;}宽度:100%;