国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

How to set text alignment

Example analysis:

The text-align attribute specifies the horizontal alignment of the element's text.

You can set the following horizontal alignment:

●Left: Arrange the text to the left. Default: determined by the browser.?

● Right: Arrange the text to the right.

● Center: Arrange the text to the middle.

●Justify: To achieve the effect of aligning text on both ends.



Continuing Learning
||
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php中文網(wǎng)(php.cn)</title> <style> h1 {text-align:center;} p.date {text-align:right;} p.main {text-align:justify;} </style> </head> <body> <h1>CSS text-align 實(shí)例</h1> <p class="date">2015 年 3 月 14 號</p> <p class="main">“當(dāng)我年輕的時候,我夢想改變這個世界;當(dāng)我成熟以后,我發(fā)現(xiàn)我不能夠改變這個世界,我將目光縮短了些,決定只改變我的國家;當(dāng)我進(jìn)入暮年以后,我發(fā)現(xiàn)我不能夠改變我們的國家,我的最后愿望僅僅是改變一下我的家庭,但是,這也不可能。當(dāng)我現(xiàn)在躺在床上,行將就木時,我突然意識到:如果一開始我僅僅去改變我自己,然后,我可能改變我的家庭;在家人的幫助和鼓勵下,我可能為國家做一些事情;然后,誰知道呢?我甚至可能改變這個世界。”</p> <p><b>注意:</b> 重置瀏覽器窗口大小查看 "justify" 是如何工作的。</p> </body> </html>
submitReset Code