Remember what never back down without a single line of code omitted omitted and multi-line

Omitting a single line:

white-space  : nowrap;
    overflow     : hidden;
    text-overflow: ellipsis;

 

Multiple lines are omitted:

 overflow: hidden;
    max-height: 44px;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    word-break:break-word;
    /* autoprefixer: off */
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    /* autoprefixer: on */
 
 
(Commented out part is to ensure that when compiling old code is not lost)

Guess you like

Origin www.cnblogs.com/nangras/p/12098597.html