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;
}
페이지 정보
[ 조회 78회 ] 작성일18-08-31 23:45