當你在Word中編輯段落的時候,為了讓段落看上去美觀大方.你可以設定文字兩側對其,可以避免文欄位落一邊參差不齊的不好現象.
如果你有一個HTML頁面或者其他類型的頁面,正在用DIV編輯一段文字.可能發愁怎麼讓文字兩端對其.其實CSS就很容易實現這一點:
<p>左右對齊</p>
<div style="font-size:12px;width:200;text-align:justify; text-justify:inter-ideograph">
1. Financial Terms. Client shall pay all sums due to and incurred by Posterscope USA, in connection with the Services by the 15th day following the invoice date. Client shall reimburse Posterscope USA promptly, upon appropriate documentation, all out-of-pocket expenses incurred by Posterscope USA in performing the Services. Client acknowledges that Posterscope USA provides outdoor media buying and placement services to other advertisers. In connection with providing services to Client and other advertisers on a collective basis and/or with its buying and placement services, Posterscope USA may receive or be entitled to receive rebates or volume discounts. In such instances, Posterscope USA will retain such rebates or volume discounts. Posterscope USA may also provide certain monitoring, maintenance or proof of performance services relating to the placement of outdoor media for which Posterscope USA may receive and retain a fee from the outdoor media owner.
</div>
用法就是這樣:<div style="font-size:12px;width:200;text-align:justify; text-justify:inter-ideograph"> 文字顯示左右對齊</div>