Query选择器分类
JQuery选择器可分为以下类,大家先了解下,其它节我们细说他们的用法。
层级
#id
element
.class
*
ancestor descendant
parent > child
prev + next
prev ~ siblings
基本
:first
:last
:not
:even
:odd
:eq
:gt
:lt
:header
:animated
内容
:contains
:empty
:has
:parent
可见性
:hidden
:visible
属性
[attribute]
[attribute=value]
[attribute!=value]
[attribute^=value]
[attribute$=value]
[attribute*=value]
[attrSel1][attrSel2][attrSelN]
子元素
:nth-child
:first-child
:last-child
:only-child
表单
:input
:text
:password
:radio
:checkbox
:submit
:image
:reset
:button
:file
:hidden
表单对象属性
:enabled
:disabled
:checked
:selected
如果您觉得本文的内容对您的学习有所帮助:
关键字:
div