If the font exceeds a certain limit, use ellipsis instead


    width:85%;

   display:block; /*Inline objects need to be added*/
    word-break:keep-all;/* No line wrapping*/
    white-space:nowrap;/* No line wrapping*/
    overflow:hidden;/* Hide when the content exceeds the width Excess content */
    text-overflow:ellipsis;/* Display ellipsis (...) when the text inside the object overflows; used in conjunction with overflow:hidden;. */

 

Guess you like

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