
max-height: 3.6rem; //最大高度限制2行
display: inline-block;
overflow: hidden;
position: absolute;
text-align: center;
width: 8rem;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);//利用自身宽高居中
max-height: 3.6rem; //最大高度限制2行
display: inline-block;
overflow: hidden;
position: absolute;
text-align: center;
width: 8rem;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);//利用自身宽高居中
本文标题:多行文字垂直居中,超出隐藏
本文链接:https://www.haomeiwen.com/subject/bxeywctx.html
网友评论