Text exceeds, display ellipsis

Time:2022-4-27

In the front end, we often limit the length of text. We know that text overflow: ellipsis is is generally used
But we will find that it does not take effect!!
There are relevant instructions on this official website. When using text overflow, you need to set the other two properties at the same time

Text exceeds, display ellipsis

Text exceeds, display ellipsis

In this way, you can see the omission effect ~