6

I've added word-break:break-word to the comments on my site to start breaking up the words when they overflow the comment box, but it doesn't appear to be working in Firefox. I've done a JS fiddle of the setup and it does work. So something must be conflicting but I can't find it for the life of me.

JS Fiddle (working): http://jsfiddle.net/F6K99/6/

Live problem: http://bit.ly/13NcY5F

4

3 回答 3

10

您可以通过以下方式实现此目的:

A.使用word-break:break-all;代替word-break:break-word;

工作解决方案

B.或者,使用word-wrap: break-word;代替word-break:break-word;

工作解决方案

据我所知,word-break没有break-word属性。

希望这可以帮助。

于 2013-06-17T08:50:34.803 回答
3

您必须使用以下 CSS。

word-break:normal;
word-wrap:normal;

这适用于 Chrome、Firefox。

于 2015-04-29T12:54:33.753 回答
1

u hv 使用 word-break:break-all;.. 它应该在那之后工作。

于 2013-06-17T08:57:19.297 回答