CSS ellipsis
페이지 정보
조회
9,179
본문
.한줄 자르기 {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.두줄 자르기 {
line-height: 15px; //줄간의 간격
max-height: 5em; //최대 높이
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2; //자를 줄의 수
-webkit-box-orient: vertical;
}
관련자료
등록된 댓글이 없습니다.