CSS 오버플로 랩 속성
예시
브라우저가 컨테이너를 오버플로하는 경우 긴 단어로 줄을 깰 수 있도록 허용합니다.
div {
overflow-wrap: break-word;
}
정의 및 사용
이 overflow-wrap
속성은 브라우저가 컨테이너를 오버플로하는 경우 긴 단어로 줄을 깰 수 있는지 여부를 지정합니다.
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
Property | |||||
---|---|---|---|---|---|
overflow-wrap | 23.0 | 18.0 | 49.0 | 6.1 | 12.1 |
CSS 구문
overflow-wrap: normal|anywhere|break-word|initial|inherit;
속성 값
Value | Description | Play it |
---|---|---|
normal | Long words will not break, even if they overflow the container. This is default | |
anywhere | Long words will break if they overflow the container | |
break-word | Long words will break if they overflow the container | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
관련 페이지
CSS 튜토리얼: CSS 오버플로