在CSS中缩进段落的第一行
使用 text-indent属性可以缩进段落的第一行。可能的值为%或指定缩进空间的数字。
示例
您可以尝试运行以下代码以缩进第一行:
<html>
<head>
</head>
<body>
<p style = "text-indent:2cm;">
This text will have first line indented by 2cm and this line will remain at
its actual position this is done by CSS text-indent property.
</p>
</body>
</html>