left左对齐
right右对齐
center居中,学习
文字对齐
<html> <style type="text/css" media="all"> p#left { text-align: left; } p#right { text-align: right; } p#center { text-align: center; } </style> <body> <p id="left">left左对齐</p> <p id="right">right右对齐</p> <p id="center">center居中,学习<a href="http://www.dreamdu.com/css/property_text_align/">文字对齐</a></p> </body> </html>