The text content only displays two lines, then add...

  The display is as shown in the figure,

  Add the following css properties directly to the parent container of the text

    text-overflow:-o-ellipsis-lastline;

    overflow:hidden;

    text-overflow:ellipsis;

    display:-webkit-box;

  -webkit-line-clamp:2;

  -webkit-box-orient:vertical;

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325305585&siteId=291194637