Last active
December 12, 2015 06:28
-
-
Save suziewong/4728956 to your computer and use it in GitHub Desktop.
CSS3 选择器
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CSS 选择器 | |
==================== | |
CSS1&2 关系选择器 | |
CSS1&2元素选择器 | |
* 通配选择器 | |
E 类型选择器 | |
E#id | |
E.class | |
E F 包含选择器 | |
E>F 子选择器 选择所有作为E元素的子元素F | |
E+F 相邻选择器 选择紧贴E之后的F元素 | |
伪类选择器 | |
E:link | |
E:visited | |
E:hover 鼠标悬停 | |
E:active | |
E:focus | |
E:lang() | |
结构伪类选择器 | |
E:root | |
E:last-child | |
E:last-child | |
E:only-child | |
E:nth-child(n) | |
E:nth-last-child(n) | |
E:first-of-type | |
E:last-of-type | |
E:only-of-type | |
E:nth-of-type(n) odd even | |
E:nth-last-of-type(n) | |
E:empty | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment