<div class="fl border">{{credInfo}}</div>
.border{
min-width: 80px;
max-width: 148px;
overflow: hidden;
下面这一部分是起作用部分
height: 39px;
line-height: 19.5px;
display: flex;
align-items: center;
justify-content: space-around;
flex-direction: column;
}
css设置文字上下居中,一行文字居中,两行或多行文字同样居中
最新推荐文章于 2021-06-28 10:32:34 发布