如图需要顶部和底部不变,中间内容实现滚动
方法:
body display:flex ;flex-direction: column; height:100%;
header头部固定高度
section部分flex:1;overflow-y: scroll;
footer部分也是固高
如图需要顶部和底部不变,中间内容实现滚动
方法:
body display:flex ;flex-direction: column; height:100%;
header头部固定高度
section部分flex:1;overflow-y: scroll;
footer部分也是固高