上QQ阅读APP看本书,新人免费读10天
设备和账号都新为新人
③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一起使用。