CSS 단어 분리 속성
예시
임의의 문자에서 단어 나누기:
p.a {
word-break: break-all;
}
정의 및 사용
이 word-break
속성은 줄 끝에 도달할 때 단어가 끊어지는 방식을 지정합니다.
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
Property | |||||
---|---|---|---|---|---|
word-break | 4.0 | 5.5 | 15.0 | 3.1 | 15.0 |
CSS 구문
word-break: normal|break-all|keep-all|break-word|initial|inherit;
속성 값
Value | Description |
---|---|
normal | Default value. Uses default line break rules |
break-all | To prevent overflow, word may be broken at any character |
keep-all | Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as value "normal" |
break-word | To prevent overflow, word may be broken at arbitrary points |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |