方法一:使用margin方法二:使用flex
方法一:使用margin
css
.center {
margin: 0 auto;
}
方法二:使用flex
css
.center {
display: flex;
justify-content: center;
align-items: center;
}
本站系公益性非盈利分享网址,本文来自用户投稿,不代表码文网立场,如若转载,请注明出处
方法一:使用margin方法二:使用flex
方法一:使用margin方法二:使用flex
方法一:使用margin
css
.center {
margin: 0 auto;
}
方法二:使用flex
css
.center {
display: flex;
justify-content: center;
align-items: center;
}
本站系公益性非盈利分享网址,本文来自用户投稿,不代表码文网立场,如若转载,请注明出处
评论列表(83条)