如何仅在css/html中强制单词之间换行?
我在如何仅在css/html中强制单词之间换行?,html,css,word-break,Html,Css,Word Break,我在标记中只有一段常规文本,在标记中。但只有Firefox才能正确显示它 Firefox打破了单词之间的界限。所有其他浏览器都会在单词中间断线,这使得阅读变得困难 以下是我的意思的一个例子: Firefox(工作模式): 所有其他浏览器(IE5-8、safari、chrome)(不工作:) 我如何使它适用于所有浏览器?在css中的某个地方,您可能有word wrap:break word。找到它并将其更改为wordwrap:normal(或者干脆完全删除wordwrap元素)。要让文本自行中断,
标记中只有一段常规文本,在
标记中。但只有Firefox才能正确显示它
Firefox打破了单词之间的界限。所有其他浏览器都会在单词中间断线,这使得阅读变得困难
以下是我的意思的一个例子:
Firefox(工作模式):
所有其他浏览器(IE5-8、safari、chrome)(不工作:)
我如何使它适用于所有浏览器?在css中的某个地方,您可能有word wrap:break word
。找到它并将其更改为wordwrap:normal
(或者干脆完全删除wordwrap元素)。要让文本自行中断,只需在文本的容器(div、td等)的左右两侧添加填充即可。嗯?你能为它显示HTML吗?它不应该那样工作。正如佩卡所说,这是不正常的。使用IE开发者工具查看DOM并找出应用于段落的样式。如果您发布您的发现,我们可能会向您指出问题所在。@Pekka:有趣的是,尽管这是CSS3,但它似乎从5.5版开始就受到IE的支持:是的,我已经检查过了。我的css中没有这样的语句。我添加了body*{wordwrap:normal;}
只是为了确保它不会改变任何东西代码>已设置。它是用来处理日语的,应该拿出来做英文版的。啊!很高兴你弄明白了:)
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...
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...