1.将组件的left top right bottom 全部设置为0,
2.margin:auto
最终就会水平和垂直都居中
vue 前端使空间水平和垂直居中的一种简便方法
最新推荐文章于 2023-12-19 09:24:34 发布
1.将组件的left top right bottom 全部设置为0,
2.margin:auto
最终就会水平和垂直都居中