父元素设置
width: 500px;
display: flex;
flex-direction: column;
最后一个子元素C(输入区)设置
flex: 1;
但是当C的内容超出预定高度时,它的实际高度为内容高度。即flex:1没生效
在 segmentfault.com/q/101000001… 找到答案,原来是要设置
overflow: scroll
父元素设置
width: 500px;
display: flex;
flex-direction: column;
最后一个子元素C(输入区)设置
flex: 1;
但是当C的内容超出预定高度时,它的实际高度为内容高度。即flex:1没生效
在 segmentfault.com/q/101000001… 找到答案,原来是要设置
overflow: scroll