span(行级元素)在不定高的div(块级元素)中垂直居中的方法

设置父级元素:

align-items: center;
display: flex;

posted @ 2019-05-23 11:52  Yuan-yiming  阅读(1488)  评论(0编辑  收藏  举报