浏览器将是 Mozilla firefox 5
如果文本是:文本太长gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg
我希望它被包装:
text is too longggggggggggggg
ggggggggggggggggggggggggggggg
ggggggggggggggggggggggggggggg
浏览器将是 Mozilla firefox 5
如果文本是:文本太长gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg
我希望它被包装:
text is too longggggggggggggg
ggggggggggggggggggggggggggggg
ggggggggggggggggggggggggggggg
把它放在一个多行文本框中。
实际上,您需要指定标签的宽度。在我的情况下,我把它放在里面并添加这个 css 类: display: inline-block; 宽度:123px;断字:全部中断;
您可以尝试使用 CSS 样式word-wrap: break-word