- 章节重复度20190523003
- 223
- 124字
- 2024-12-10 09:47:06
③word-break(单词断行)
CSS 属性 word-break 指定了怎样在单词内断行。
比如强行对字母文字换行,不考虑是否好读,则可以设置在任意字符间换行:
▼
The browser is free to automatically break words at appropriate hyphenation points, following whatever rules it chooses to use. Suggested line break opportunities, as covered in Suggesting line break opportunities, should be preferred over automatically selecting break points whenever possible.
▲
.word-break {
word-break: break-all;
}
注意:这个属性不可以和htphens一起使用。