<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>利用text-align:justify完成单行文字两端对齐</title>
<style>
.justify{
height:1.1em;
overflow:hidden;
text-align:justify;
text-justify : distribute-all-lines ;
}
</style>
</head>
<body>
<div class="justify ">个 两个 三个字 四个字滴 五个字滴滴</div>
<div class="justify ">aa bbbb cccccc dddddddd eeeeeeeeee</div>
</body>
</html>
个 两个 三个字 四个字滴 五个字滴滴
aa bbbb cccccc dddddddd eeeeeeeeee