CSS3 워드 래핑 정보
CSS CSS3 워드 래핑본문
CSS3 워드 래핑
CSS3 word-wrap속성을 사용하면 긴 단어를 끊어서 다음 줄로 감쌀 수 있습니다.
단어가 너무 길어서 한 영역 내에 들어 가지 않으면 외부로 확장됩니다.
예
긴 단어를 깨뜨리고 다음 줄로 감쌀 수있게하십시오 :
p {
word-wrap: break-word;
}
<!DOCTYPE html>
<html>
<head>
<style>
p.test {
width: 11em;
border: 1px solid #000000;
word-wrap: break-word;
}
</style>
</head>
<body>
<p class="test"> This paragraph contains a very long word: thisisaveryveryveryveryveryverylongword. The long word will break and wrap to the next line.</p>
</body>
</html>
추천
0
0
댓글 0개