length:它用于根据px,pt,cm,em等设置固定缩进。length的默认值为0。
用法:
text-indent:length;
例:
CSS text-indent Property
.sudo {
text-indent:70px;
}
.geeks {
text-indent:-5em;
}
.gfg {
text-indent:40%;
}
GeeksforGeeks
text-indent Property
text-indent:70px:
Prepare for the Recruitment drive of product
based companies like Microsoft, Amazon, Adobe
etc with a free online placement preparation
course. The course focuses on various MCQ's
& Coding question likely to be asked in the
interviews & make your upcoming placement
season efficient and successful.
text-indent:-5em:
Prepare for the Recruitment drive of product
based companies like Microsoft, Amazon, Adobe
etc with a free online placement preparation
course. The course focuses on various MCQ's
& Coding question likely to be asked in the
interviews & make your upcoming placement
season efficient and successful.
text-indent:40%:
Prepare for the Recruitment drive of product
based companies like Microsoft, Amazon, Adobe
etc with a free online placement preparation
course. The course focuses on various MCQ's
& Coding question likely to be asked in the
interviews & make your upcoming placement
season efficient and successful.
输出: