uniapp完美实现顶部,底部固定,中间滑动
2022-11-24 本文已影响0人
Lna_35da
实现方法
1.跟布局设置代码块,给高度,竖向排序
display: flex;
flex-direction: column;
height: 100%;
2.中间布局给滑动,给权重(权重可以避免中间布局不够整平导致底部上移)
overflow: scroll;
flex: 1;
实现方法
1.跟布局设置代码块,给高度,竖向排序
display: flex;
flex-direction: column;
height: 100%;
2.中间布局给滑动,给权重(权重可以避免中间布局不够整平导致底部上移)
overflow: scroll;
flex: 1;