CSS中text-align属性的使用
该文本对齐属性被用于对准文档的文本。可能的值是left,right,center,justify。
示例
您可以尝试运行以下代码来实现text-align属性:
<html>
<head>
</head>
<body>
<p style = "text-align:right;">
This will be right aligned.
</p>
<p style = "text-align:center;">
This will be center aligned.
</p>
<p style = "text-align:left;">
This will be left aligned.
</p>
</body>
</html>