Skip to content
New issue

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

Structural Pseudo-Class #1

Open
xujihui1985 opened this issue Apr 26, 2014 · 0 comments
Open

Structural Pseudo-Class #1

xujihui1985 opened this issue Apr 26, 2014 · 0 comments

Comments

@xujihui1985
Copy link
Owner

:first-child

:last-child

:first-of-type

:last-of-type

:only-child

:only-of-type

:nth-child(3n)

:nth-last-child(odd)

:nth-of-type(5)

:nth-last-of-type(3n+1) 

:not     eg: div:not(.excludeMe)
:nth-of-type(2n+9)  //第9个元素开始后的偶数

how to read css easily

eg:

tr:nth-of-type(odd) td:nth-of-type(8) ~ td

从后往前读,

  1. td
  2. ~ 之后的所有兄弟
  3. 第8个td
  4. 基数行

连起来就是, 在所有基数行中的 第8个td后的 所有的 td

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant