4

<p>我在标签内的标签中只有一段普通的文本<div>。但只有 Firefox 才能正确显示。

Firefox 打破了单词之间的界限。所有其他浏览器都会中断中间字,这使得它难以阅读。

这是我的意思的一个例子:

火狐(工作):

This was busy in it was I was here. Let 
him as being within eight by their 
graves, to go down upon her to be a 
dozen directly. So, leaving word 
following, poor mother, of other man, 
and my finger on his blue flag, and the 
habit of tea on a bit. I might feel 
very sorry there is rich, too; late of 
his deepest voice...

所有其他浏览器(IE5-8、safari、chrome)(不工作:)

This was busy in it was I was here. Le
t him as being within eight by their g
raves, to go down upon her to be a doz
en directly. So, leaving word followin
g, poor mother, of other man, and my f
inger on his blue flag, and the habit 
of tea on a bit. I might feel very sor
ry there is rich, too; late of his dee
pest voice...

我如何使它适用于所有浏览器?

4

2 回答 2

4

在你的 css 中的某个地方你可能有word-wrap: break-word. 找到它并将其更改为word-wrap: normal(或完全删除自动换行元素)。

于 2010-02-14T00:35:49.360 回答
2

要让文本自行中断,只需在文本容器(div、td 等)的左侧和右侧添加填充。

于 2011-06-28T19:21:10.590 回答