.lineclamp
文本溢出:多行省略号。
你是怎么做到的?
. lineclamp {
/* config */
line-height : 1.5 ;
height : 3 em ;
background-color : # fff ;
/* config end */
position : relative;
padding-right : 1 em ;
overflow : hidden;
}
. lineclamp : before {
content : "..." ;
position : absolute;
right : 0 ;
bottom : 0 ;
display : inline-block;
width : 1 em ;
}
. lineclamp : after {
content : "" ;