css more than one line ellipsis

// more than one line ellipsis 
overflow: hidden; 
White-Space: nowrap; 
text-overflow: ellipsis; 

// more than two lines ellipsis 
overflow: hidden; 
text-overflow: ellipsis; 
Run the display: Box; 
Run the display: -webkit-Box; 
-webkit CLAMP--line: 2; 
-webkit-Box-Orient: Vertical;

 

Guess you like

Origin www.cnblogs.com/caoyuna/p/11693725.html