利用Element 组件 “container布局容器”布局;

当内容不能铺满屏幕时,footer不能置底

这样的:
Vue Element footer置底适配

先说解决方案:

 1 .divBox{
 2   position:absolute;
 3   top:0;
 4   left:0;
 5   width:100%;
 6   height:100%;
 7 }
 8 .containerBox{
 9   height:100%;
10 }

Vue Element footer置底适配

 然后就置底了:

 

Vue Element footer置底适配

 

 数据量大于屏幕的高度时也可以适配了:
Vue Element footer置底适配

 

相关文章:

  • 2022-12-23
  • 2022-02-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2021-09-05
猜你喜欢
  • 2021-04-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案