left左对齐
right右对齐
center居中,学习
文字对齐
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>定义文字的对齐方式</title> <style type="text/css" media="all"> p#left { text-align: left; } p#right { text-align: right; } p#center { text-align: center; } </style> </head> <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>