[color=red][size=large]建议使用word-break:keep-all,不拆分单词[/size][/color]
[color=red][size=x-large]代码效果如下[/size][/color]
[img]http://dl2.iteye.com/upload/attachment/0122/5022/fad06d95-86bf-3cfb-af45-82dcb744617d.png[/img]
<title>菜鸟教程(runoob.com)</title>
<style>
p.test1
{
width:9em;
border:1px solid #000000;
word-break:keep-all;
}
p.test2
{
width:9em;
border:1px solid #000000;
word-break:break-all;
}
</style>
</head>
<body>
<p class="test1"> This paragraph contains some text. This line will-break-at-hyphenates.</p>
<p class="test2"> This paragraph contains some text: The lines will break at any character.</p>
<p><b>注意:</b> word-break 属性不兼容 Opera.</p>
</body>
</html>
[color=red][size=x-large]代码效果如下[/size][/color]
[img]http://dl2.iteye.com/upload/attachment/0122/5022/fad06d95-86bf-3cfb-af45-82dcb744617d.png[/img]