When using css to realize that the text cannot be displayed, replace it with an ellipsis
1、
A single line of text:
overflow: hidden; text-overflow:ellipsis; white-space: nowrap;display effect:
2. Multi-line text
display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; /*Number of lines*/ overflow: hidden;
display effect