2019-01-18倍数选择器,段落缩进

1,总结关于css选择倍数的选择器。
如选择3的倍数
:nth-child(3n+3){
}

2,css给每个段落加缩进
.a{text-indent:2em;}这可以实现首行缩进2字符。
.aa{text-indent:2em;padding:0 2em;}这样就可以实现左右的“缩进”

你可能感兴趣的:(2019-01-18倍数选择器,段落缩进)