使用CSS缩进段落的文字
该 文本缩进属性来缩进段落的文字。可能的值为%或指定缩进空间的数字。
示例
您可以尝试运行以下代码以在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>