CSS3参考手册
»
选择符列表
相关内容:
其它选择符参考
选择其它项
CSS Selectors Module
CSS选择符集合
元素选择符 Element Selectors
*
E
E#id
E.class
关系选择符 Relationship Selectors
E F
E>F
E+F
E~F
属性选择符 Attribute Selectors
E[att]
E[att="val"]
E[att~="val"]
E[att^="val"]
E[att$="val"]
E[att*="val"]
E[att|="val"]
伪类选择符 Pseudo-Classes Selectors
E:link
E:visited
E:hover
E:active
E:focus
E:lang(fr)
E:not(s)
E:root
E:first-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)
E:nth-last-of-type(n)
E:empty
E:checked
E:enabled
E:disabled
E:target
@page:first
@page:left
@page:right
伪对象选择符 Pseudo-Element Selectors
E:first-letter/E::first-letter
E:first-line/E::first-line
E:before/E::before
E:after/E::after
E::placeholder
E::selection
紫色
链接表示该属性在CSS3有修改或者增加了新的属性值;
橙色
链接表示该属性是CSS3新增属性
阅读全文
看完两件小事
如果你觉得这篇文章对你挺有启发,我想请你帮我两个小忙:
关注我们的
GitHub 博客
,让我们成为长期关系
把这篇文章分享给你的
朋友 / 交流群
,让更多的人看到,一起进步,一起成长!
关注公众号:
画漫画的程序员
,每天早上8点30分准时推送:前端前沿资讯、大厂面试题、程序员轶事、职场感悟等,一起进步!