利用Element 组件 “container布局容器”布局;
当内容不能铺满屏幕时,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 }
然后就置底了:
数据量大于屏幕的高度时也可以适配了:
利用Element 组件 “container布局容器”布局;
当内容不能铺满屏幕时,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 }
然后就置底了:
数据量大于屏幕的高度时也可以适配了:
下一篇:x ? y : z
OpenKruise的出现弥补了 Kubernetes 在应用部署、升级、防护、运维等领域的不足。
【代码】[element-ui] 滚动条el-scrollbar置底。
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M