自动换行
单词太长的话就可能无法超出某个区域:
This paragraph contains a very long word: thisisaveryveryveryveryveryverylongword. The long word will break and wrap to the next line.
在 CSS3 中,word-wrap 属性允许您允许文本强制文本进行换行 - 即使这意味着会对单词进行拆分:
This paragraph contains a very long word : this is a very very very very very very long word. The long word will break and wrap to the next line.
CSS实例代码:
允许对长单词进行拆分,并换行到下一行:
p {word-wrap:break-word;}