假设我有这段话
iamaverylongwordthathasnospace yehey
当我使用 word-wrap: break-word;
时,它变成了
iamaverylongwordthathas
nospace yehey
这很好...但是当我尝试
iama verylongwordthathasaspace yehey
它变成了
iama
verylongwordthathasaspace
yehey
我的问题是如何使段落看起来像这样
iama verylongwordthathas
nospace yehey
它将在空格处换行,但强制在长单词处断开?
word-break: break-all;
绝对不是一个好的解决方案"。它有什么问题? - Alohci