I use this webkit line clamp, it works in Chrome, but not in Firefox. The following is the code:
{ overflow: hidden; text-overflow: ellipsis; display: -we
{ overflow:hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; /* number-of lines */ -webkit-box-orient: vertical; word-wrap:break-word; line-height:1.2; /* line-height for 1line*/ max-height:3.6rem; /* line-height * 3*/ }
it works fine with chrome, ff, ie, edge