<!DOCTYPE HTML>html
<html>web
<head>chrome
<title>文本兩端對齊 by 司徒正美</title>ui
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">.net
<style>htm
.box1{get
background:red;it
width:20%;io
}ast
.scatter {
text-align:justify;
text-justify:distribute-all-lines;/*ie6-8*/
text-align-last:justify;/* ie9*/
-moz-text-align-last:justify;/*ff*/
-webkit-text-align-last:justify;/*chrome 20+*/
}
@media screen and (-webkit-min-device-pixel-ratio:0){/* chrome*/
.scatter:after{
content:".";
display: inline-block;
width:100%;
overflow:hidden;
height:0;
}
}
</style>
</head>
<body>
<div class="box1">
<div class="scatter">姓 名</div>
<div class="scatter">姓 名 姓 名</div>
<div class="scatter">姓 名 名</div>
<div class="scatter">所 在 地</div>
<div class="scatter">工 做 單 位</div>
</div>
</body>
</html>