定义个class类名flex-center
.flex-center {
display: flex; //开启flex布局
justify-content: center;//左右居中
align-items: center;//上下居中
}
html居中显示
最新推荐文章于 2024-08-14 09:08:45 发布
定义个class类名flex-center
.flex-center {
display: flex; //开启flex布局
justify-content: center;//左右居中
align-items: center;//上下居中
}