:nth-child(-n+m) {
do some thing
}
选择前几个元素
:nth-child(n+6) {
do some thing
}
从第几个开始选择
:nth-child(-n+9):nth-child(n+6)
限制范围:6-9
:nth-child(-n+m) {
do some thing
}
选择前几个元素
:nth-child(n+6) {
do some thing
}
从第几个开始选择
:nth-child(-n+9):nth-child(n+6)
限制范围:6-9
本文标题:css3 nth 选择范围
本文链接:https://www.haomeiwen.com/subject/zqwjhrtx.html
网友评论