日期:2014-05-16  浏览次数:20618 次

为什么在网页里,标点符号跑到行首了呢?
[img=http://][/img]
如上图,为什么在网页里,这个标点符号跑到行首了呢? 怎么解决呢?谢谢!
代码如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css2.css" rel="stylesheet" type="text/css" />
<title>无标题文档</title>
</head>

<body>

      <div id="characters-right" style="float:right;margin-top:70px;width: 270px; height: 650px; overflow-y:auto; overflow-x: hidden;">
        <h1>车展中国</h1>
        <p class="english"><img src="images/autoshows.png" /></p>
        <p class="content_b" style="margin-bottom:10px;margin-top:10px;color:#6c6c6c;font-size:14px;text-align:justify;word-spacing:4px;line-height:30px;">车展中国手机客户端是以国内、国际各级车展为内容主体的,涵盖了新车资讯、车展动态等详细内容的,向最终用户提供内容阅读、车展导览、汽车品牌。车展中国手机客户端是以国内、国际各级车展为内容主体的,涵盖了新车资讯、车展动态等详细内容的,向最终用户提供内容阅读、车展导览、汽车品牌。</p>
      </div>
</body>
</html>

HTML

------解决方案--------------------
额,我直用复制楼主的代码,貌似用各浏览器都测不到这样的情况,如果确实不行,看word-break这个属性能不能帮到你