相关疑难解决方法(0)

使用CSS从段落的第二行开始缩进

如何从段落的第二行开始缩进?

我试过了

p {
    text-indent: 200px;
}
p:first-line {
    text-indent: 0;
}
Run Code Online (Sandbox Code Playgroud)

p {
    margin-left: 200px;
}
p:first-line {
    margin-left: 0;
}
Run Code Online (Sandbox Code Playgroud)

(with position:relative;)
p {
    left: 200px;
}
p:first-line {
    left: 0;
}
Run Code Online (Sandbox Code Playgroud)

html css text indentation pseudo-class

88
推荐指数
4
解决办法
13万
查看次数

标签 统计

css ×1

html ×1

indentation ×1

pseudo-class ×1

text ×1