div文字自动换行

836 阅读1分钟

背景:

        如果 div 里的是 连续的英文 之间没用空格,那么它会以为是一个单词,就不会换行

css解决:

word-break: break-all;
word-wrap:break-word;