Single line display…

white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
Copy the code

Multi-line display…

word-break: break-all;
text-overflow: ellipsis;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
Copy the code