Home > Article > Web Front-end > CSS3 multi-line display of ellipses._html/css_WEB-ITnose
You can control the first few lines without using js. Let him control which lines are omitted:
<span style="font-size:18px;color:#999999;">text-overflow: -o-ellipsis-lastline;overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;</span>