語法:
word-wrap : normal | break-word
取值:
- normal:
- 控制連續(xù)文本換行。
- break-word:
- 內(nèi)容將在邊界內(nèi)換行。如果需要,詞內(nèi)換行(word-break)也會發(fā)生。
說明:
- 設(shè)置或檢索當(dāng)當(dāng)前行超過指定容器的邊界時(shí)是否斷開轉(zhuǎn)行。
兼容性:
類型 |
![]() |
![]() |
![]() |
![]() |
![]() |
---|---|---|---|---|---|
版本 | (√)IE6 | (×)Firefox 2.0 | (√)Chrome 1.0.x | (×)Opera 9.63 | (√)Safari 3.1 |
(√)IE7 | (×)Firefox 3.0 | (√)Chrome 2.0.x | (√)Safari 4 | ||
(√)IE8 | (√)Firefox 3.5 | ||||
示例:
