css 텍스트가 한 줄 이상이면 텍스트를 줄여서 '...' 줄임표로 끝내기
관련링크
본문
HTML :
<p class="truncate-text">If I exceed one line's width, I will be truncated.</p>
CSS :
.truncate-text {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
width: 200px;
}
페이지 정보
[ 조회 84회 ] 작성일18-06-14 12:29