控制段落的缩进
Style Sheet的一个非常有用的属性是text-indent属性,使用这个属性,你可以通过提供百分数或绝对值来缩进文本,就如下面的例子所示(见图7.29):
<HTML>
<HEAD>
<TITLE> Style </TITLE>
<STYLE>
<!--
.Indented {text-indent: 10%}
-->
</STYLE>
</HEAD>
<BODY>
<P CLASS=Indented>
This paragraph is indented.
This paragraph is indented.
This paragraph is indented.
</P>
<P>
This paragraph is not.
This paragraph is not.
This paragraph is not.
</P>
</BODY>
</HTML>
图7.29 使用style sheet来缩进文字