CSS中的两侧对其

当你在Word中编辑段落的时候,为了让段落看上去美观大方.你可以设置文字两侧对其,可以避免文字段落一边参差不齐的不好现象.

如果你有一个HTML页面或者其他类型的页面,正在用DIV编辑一段文字.可能发愁怎么让文字两端对其.其实CSS就很容易实现这一点:

<p>两端对齐</p>

<div >

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 > 文字显示两端对齐</div>