当前位置:网站首页>Parts beyond the text are indicated by ellipsis

Parts beyond the text are indicated by ellipsis

2022-06-22 16:31:00 Dumiyue

1. Single line text exceeds

overflow: hidden;   
white-space: nowrap;     // The text does not wrap 
text-overflow:ellipsis;  // The part beyond the text is indicated by an ellipsis 

 Insert picture description here

2. Multiline text exceeds

text-overflow: ellipsis; 	   //  Exceeded text = The ellipsis means 
display: -webkit-box;   	   // Display the object as an elastic expansion box model 
-webkit-line-clamp: 8;   	   //  Show ellipsis on the next few lines 
-webkit-box-orient: vertical;  // Arrange children vertically from top to bottom 

 Insert picture description here

原网站

版权声明
本文为[Dumiyue]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206221517109037.html