flex-wrap: wrap时做文本溢出处理,文本无法居中
div {width: 100px;
height: 100px;
display: flex;
flex-wrap: wrap;
align-items: center;
background: #980720;
}
span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
<div><span>
flex-wrap: wrap时做文本溢出处理,文本无法居中
</span>
</div>
在用UI框架时踩坑了
回答
我看居中了啊
以上是 flex-wrap: wrap时做文本溢出处理,文本无法居中 的全部内容, 来源链接: utcz.com/a/66097.html