887 B
887 B
title | localeTitle |
---|---|
P Align Attribute | P对齐属性 |
P对齐属性
重要
HTML5不支持此属性。建议使用text-align
CSS属性 。
要在<p>
标记内对齐文本,此属性将有所帮助。
句法
<p align="position">Lorem Ipsum...</p>
属性
- left - 文本左对齐
- right - 文本右对齐
- center - 文本与中心对齐
- 对齐 - 所有文本行的宽度相等
例
<html>
<body>
<p align="center">Paragraph align attribute example</p>
</body>
</html>