/*自动隐藏文字*/=====1行
.public-ellipsis-1 {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
/*自动隐藏文字*/=====2行
.public-ellipsis-2 {
display: -webkit-box !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
word-wrap: break-word !important;
white-space: normal !important;
-webkit-line-clamp: 2 !important;
-webkit-box-orient: vertical !important;
}
/*自动隐藏文字*/=====3行
.public-ellipsis-3 {
display: -webkit-box !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
word-wrap: break-word !important;
white-space: normal !important;
-webkit-line-clamp: 3 !important;
-webkit-box-orient: vertical !important;
}
css行内标题,内容溢出省略号表示
最新推荐文章于 2023-08-05 09:27:14 发布