我們?cè)谥谱骶W(wǎng)頁的時(shí)候,常常會(huì)想使讓其中的或者整段的文字左右對(duì)齊,下面深圳網(wǎng)站建設(shè)就教你如何在網(wǎng)頁中使用各種方式來左右對(duì)齊文字:
使用<p>標(biāo)簽。
1中文對(duì)齊:<br>
<div style="font-size:12px;width:300;text-align:justify; text-justify:inter-ideograph">
只有付出的愛是痛苦的,但比這更痛苦是愛一個(gè)人卻沒有勇氣讓那人知道你的感情。</div>
1英文對(duì)齊:<br>
<div style="font-size:12px;width:300;text-align:justify;text-justify:inter-ideograph">It hurts to love someone and not be loved in return. But what is more painful is to love someone and never find the courage to let that person know how you feel.
</div>
<br>
【 微信掃一掃 】