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