HTML段落对齐方式



我想对齐下面的文本。我只需要使用HTML进行格式化(而不是CSS,因为HTML代码在perl文件中,可以使用内联CSS)。我可以通过将行用作表的行/列,并将表的宽度指定为与文本对齐的y特定值来完成吗?

当前格式

September 19, 2014
Status of my report 
This message is being sent regularly to development managers and interested parties to report the   status of having proper headings in the code of products that we are releasing.
For details refer to  Headers page.

所需格式:

       September 19, 2014
       Status of my report 
       This message is being sent regularly to development managers and 
       interested parties to report the status of having proper headings 
       in the code of products that we are releasing.
       For details refer to  Headers page.

在没有任何CSS的情况下,定位文本的唯一方法是使用<pre>标记:

<pre>
           September 19, 2014
           Status of my report 
           This message is being sent regularly to development managers and 
           interested parties to report the status of having proper headings 
           in the code of products that we are releasing.
           For details refer to  Headers page.
</pre>

如果允许CSS,只需在段落上设置一个宽度和边距:

<p style="width:400px;margin:0 100px">...

最新更新