RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
jquery的类选择器,jquery中的选择器

jquery选择器有哪些

jquery选择器总共有四大类,分别为基本选择器(ID、类、标签、通配符选择器),层次选择器,过滤选择器(基本过滤器,内容过滤器,可见性过滤器,属性过滤器,子元素过滤器、表单对象属性过滤选择器)和表单选择器。

成都创新互联公司从2013年成立,公司以成都做网站、网站制作、成都外贸网站建设、系统开发、网络推广、文化传媒、企业宣传、平面广告设计等为主要业务,适用行业近百种。服务企业客户1000+,涉及国内多个省份客户。拥有多年网站建设开发经验。为企业提供专业的网站建设、创意设计、宣传推广等服务。 通过专业的设计、独特的风格,为不同客户提供各种风格的特色服务。

jquery的选择器有哪些

1、基本选择器:

#id 、element 、.class 、* 、selector1,selector2,selectorN

2、层次选择器:

ancestor descendant 、parent child 、prev + next 、prev ~ siblings

3、基本过滤器选择器

:first 、:last 、:not 、:even 、:odd 、:eq 、:gt 、:lt 、:header 、

:animated

4、内容过滤器选择器

:contains 、:empty 、:has 、:parent

5、可见性过滤器选择器

:hidden 、:visible

6、属性过滤器选择器

[attribute] 、[attribute=value] 、[attribute!=value] 、[attribute^=value] 、[attribute$=value] 、[attribute*=value] 、[attrSel1][attrSel2][attrSelN]

7、子元素过滤器选择器

:nth-child 、:first-child 、:last-child 、:only-child

8、表单选择器

:input 、:text 、:password 、:radio 、:checkbox 、:submit 、:image 、:reset 、:button

、:file 、:hidden

9、表单过滤器选择器

:enabled 、:disabled 、:checked 、:selected

jquery的选择器有哪几种类型

很多种,大概归纳为9种。

(1)基本

#id

element

.class

*

selector1,selector2,selectorN

(2)层次选择器:

ancestor descendant

parent child

prev + next

prev ~ siblings

(3)基本过滤器选择器

:first

:last

:not

:even

:odd

:eq

:gt

:lt

:header

:animated

(4)内容过滤器选择器

:contains

:empty

:has

:parent

(5)可见性过滤器选择器

:hidden

:visible

(6)属性过滤器选择器

[attribute]

[attribute=value]

[attribute!=value]

[attribute^=value]

[attribute$=value]

[attribute*=value]

[attrSel1][attrSel2][attrSelN]

(7)子元素过滤器选择器

:nth-child

:first-child

:last-child

:only-child

(8)表单选择器

:input

:text

:password

:radio

:checkbox

:submit

:image

:reset

:button

:file

:hidden

(9)表单过滤器选择器

:enabled

:disabled

:checked

:selected

jquery选择器包括哪几大类

其实基本用法同css选择器,即通用选择器(*)、标签选择器(p,dl,header等)、类选择器(.className)、ID选择器(#IDName)、后代选择器(“ ”)、子选择器()、属性选择器([attribute],[attribute=value],[attribute!=value],[attribute$=value])、伪类选择器、群组选择器。而且有些低版本的IE浏览器不支持的,jQuery也能够兼容支持。


分享文章:jquery的类选择器,jquery中的选择器
网站链接:http://cqwzjz.cn/article/dsohhoj.html