- 基本选择器:#id,class,element,*;
- 层次选择器:parent > child,prev + next ,prev ~ siblings;
- 基本过滤器选择器::first,:last ,:not ,:even ,:odd ,:eq ,:gt ,:lt;
- 内容过滤器选择器: :contains ,:empty ,:has ,:parent;
- 可见性过滤器选择器::hidden ,:visible;
- 属性过滤器选择器:[attribute] ,[attribute=value] ,[attribute!=value] ,[attribute^=value] ,[attribute$=value] ,[attribute*=value];
- 子元素过滤器选择器::nth-child ,:first-child ,:last-child ,:only-child;
- 表单选择器: :input ,:text ,:password ,:radio ,:checkbox ,:submit 等;
- 表单过滤器选择器::enabled ,:disabled ,:checked ,:selected;
笔记 前端需要了解的jQuery选择器
本文深入讲解了CSS中各种选择器的使用方法,包括基本选择器、层次选择器、过滤器选择器等内容过滤器、可见性过滤器、属性过滤器、子元素过滤器、表单选择器及过滤器。通过本文,读者可以全面掌握CSS选择器的运用技巧。

被折叠的 条评论
为什么被折叠?



