Dev/html
-
문자열 자르기 ... 표시, 문자열 생략Dev/html 2016. 6. 21. 14:11
* 1줄 문자열 생략 (...) 표시 이 글은 한 문단에 다 표시할 수 없을 정도로 깁니다. line1-ellipsis { width:100px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } * 2줄 문자열 생략 (...) 표시 [ webkit 브라우저만 가능 ] 이 글은 한 문단에 다 표시할수없을정도로깁니다. line2-ellipsis { width:140px; overflow:hidden; text-overflow:ellipsis; line-height:20px; height:40px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
-