p标记与align属性的使用
在<p>标记中较常用的属性为align属性,通过此属性您可以控制段落的对齐方式。其语法如下:
<p alingn=left或center或right>段落文字</p>
例:
<html>
<head>
<title>p标记与align属性的使用
</head>
<body>
<p aligh=center>居中段落</p>
<p aligh=left>靠左段落</p>
<p aligh=right>靠右段落</p>
</body>
</html>
======================================================================
保留原始排版方式标记<pre>
<html>
<head>
<title>pre标记的使用</title>
</head>
<body>
<pre>
清平调
云想衣裳花想容,
春风拂槛露华浓,
若非群玉山头见,
会向瑶台月下逢。
</pre>
</body>
</html>
现在我们学的pre标记是可以保持现有的文本排版模式显示在网页里!
你可以使用这个链接引用该篇文章 http://publishblog.blogchina.com/blog/tb.b?diaryID=2431299
[2005-07-30] 红狐和我(4)
[2005-07-30] Birthday party in GUA
[2005-07-30] 日本你听着
[2005-07-30] [转帖]给大学男生的27个警告
[2005-07-30] [转帖]给大学男生的27个警告