
text-indent 属性规定文本块中首行文本的缩进。
1、允许使用负值。如果使用负值,那么首行会被缩进到左边。
2、在 CSS 2.1 之前,text-indent 总是继承计算值,而不是声明值。例子:p{text-indent:50px;}将段落的第一行缩进 50 像素:text-indent:2em 首行文本缩进2em

text-indent 属性规定文本块中首行文本的缩进。
1、允许使用负值。如果使用负值,那么首行会被缩进到左边。
2、在 CSS 2.1 之前,text-indent 总是继承计算值,而不是声明值。例子:p{text-indent:50px;}将段落的第一行缩进 50 像素:text-indent:2em 首行文本缩进2em