首页 > 技术文章 > 元素水平垂直居中
ziyoublog 2018-12-12 09:35 原文
display: flex; justify-content: center; align-items: center;
给父元素添加上面这段代码,子元素就会水平垂直居中。