原文章:https://www.w3cplus.com/css3/a-guide-to-flexbox.html 如果你的元素有固定高度的话 父元素用display: flex;height:100px; 子元素用height:10px;margin: auto; 就你能快速解决垂直居中问题
转载于:https://www.cnblogs.com/carlows/p/8316728.html
转载于:https://www.cnblogs.com/carlows/p/8316728.html