护士打针,小心侦探,邓育彬
原文链接 http://www.cnblogs.com/handsomeBoys/p/6567063.html
HTML:
<div class="book-detail-store-item align-center-vertical">居中文字</div>
CSS:
.book-detail-store-item { width: 50px; height:50px; line-height: 25px; font-size: 12px; } /*flex垂直居中对齐*/ .align-center-vertical{ display: flex; align-items: center; justify-content: space-around; flex-direction: column; }
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
css3 flex布局 justify-content:space-between 最后一行左对齐
网友评论