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

你知道的伪类有哪些?说明它们的用法 #20

Open
ray-sh opened this issue Nov 3, 2019 · 0 comments
Open

你知道的伪类有哪些?说明它们的用法 #20

ray-sh opened this issue Nov 3, 2019 · 0 comments

Comments

@ray-sh
Copy link
Owner

ray-sh commented Nov 3, 2019

:first-child的作用是匹配某父元素的第一个子元素
:last-child的作用是匹配某父元素的最后一个子元素
:first-of-type的作用是匹配父元素下使用同种标签的第一个子元素
:last-of-type的作用是匹配父元素下使用同一种标签的最后一个子元素
:link的作用是选中未访问的链接
:hover的作用是选中鼠标放置上的链接
:active的作用是选中鼠标按下未松开时的链接
:visited的作用是选中访问过的链接
:checked选中被勾选的表单元素
:disabled选中被禁用的表单元素
:focus选中被激活的表单元素
:root选中根节点

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

No branches or pull requests

1 participant