<div class="aa">
This is the first section...This is the first section...This is the first section...This is the
first section...This is the first section...This is the first section...This is the first section...This is the
first section...This is the first section...This is the first section...This is the first section...This is the
first section...This is the first section...This is the first section...
</div>
<style>
.aa {
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2; // n
width: 540px;
}
</style>
CSS n行显示不下显示...
最新推荐文章于 2024-03-28 17:10:39 发布