像素px
p {
text-indent: 20px;
}
相对单位em,相当于word的缩进字符那样
p {
text-indent: 2em;
}
百分比,基于父元素宽度的百分比缩进
p {
text-indent: 20%;
}
像素px
p {
text-indent: 20px;
}
相对单位em,相当于word的缩进字符那样
p {
text-indent: 2em;
}
百分比,基于父元素宽度的百分比缩进
p {
text-indent: 20%;
}