html <div class="text">超出两行显示省略号</div> css .text{ display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }