We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// 选取第3个元素 【从第一个开始,非数组从第0开始】 ul.container li:nth-child(3) { // todo }
x < 0 选择的是大于0 、小于等于y的标签 负方向选取
x = 1 选择的大于等于y的标签
li:nth-child(n+6) { background-color: #298EB2; box-shadow: inset -3px -3px 10px rgba(0, 0, 0, 0.4), 0 0 10px black; }
span:nth-of-type(n+3):nth-of-type(odd):nth-of-type(-n+6) div:nth-of-type(n+1):nth-of-type(even):nth-of-type(-n+3) // 大于1小于9的偶数位 :nth-child(-n+8):nth-child(n+2):nth-child(even)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
:nth-child(x*n + y) (n>=0整数, x, y整数)
x < 0 选择的是大于0 、小于等于y的标签
负方向选取
x = 1 选择的大于等于y的标签
The text was updated successfully, but these errors were encountered: