text-align:justify;
text-justify:inter-ideograph;
div.justify
{
text-align: justify; width:200px; font-size:15px; color:red;
border:1px solid blue; height:18px;
}div.justify > span
{
display: inline-block /* Opera */;
padding-left: 100%;
}
HTML:
<div class="justify">hello, text justify.</div><br/><div class="justify"> hello, text justify.<span></span></div><br/><div class="justify">中 文 两 端 对 齐</div><br/><div class="justify">中 文 两 端 对 齐<span></span></div>
联系客服