首页
下载
文档
工具
代码
文章
QQ登录
代码
HTML/CSS/JavaScript 在线代码运行
使用"偶数"和"奇数"
如何使用偶数和奇数来选取不同的子元素。
使用公式 (an + b)
如何使用公式 (an + b) 来选取不同的子元素。
选取所有 <div> 元素的第二个子元素的每个 <p> 元素
如何选取所有 <div> 元素的第二个子元素的每个 <p> 元素。
jQuery :nth-child() 选择器 实例
选取属于其父元素的第三个子元素的每个 <p> 元素。
选取所有 <div> 元素的最后一个 <p> 元素
如何选取所有 <div> 元素的最后一个 <p> 元素。
jQuery :last-of-type 选择器
选取属于其父元素的最后一个 <p> 元素的每个 <p> 元素
:last、:last-child 和 :last-of-type 之间的不同
:last、:last-child 和 :last-of-type 选择器之间的不同。
:last 和 :last-child 之间的不同
:last 和 :last-child 选择器之间的不同。
选取所有 <div> 元素的最后一个 <p> 元素
如何选取所有 <div> 元素的最后一个 <p> 元素。
jQuery :last-child 选择器
选取属于其父元素的最后一个 <p> 的子元素。
jQuery :first-of-type 选择器
选取属于其父元素的第一个 <p> 元素的每个 <p> 元素。
:first、:first-child 和 :first-of-type 之间的不同
:first、:first-child 和 :first-of-type 选择器之间的不同。
:first 和 :first-child 之间的不同
first 和 :first-child 选择器之间的不同。
选取所有 <div> 元素的第一个 <p> 元素
如何选取所有 <div> 元素的第一个 <p> 元素。
jQuery :first-child 选择器
选取属于 <p> 的父元素中第一个为 <p> 的元素。
jQuery 多个元素 选择器
选取所有 <h2>、<div> 和 <span> 元素。
jQuery 多个类 选择器
选取 class 为 "intro"、"demo" 或 "end" 的所有元素。
jQuery :odd 选择器
选择每个相隔的(奇数) <tr> 元素。
jQuery :even 选择器
选择每个相隔的(偶数) <tr> 元素。
jQuery :last 选择器
选择最后一个 <p> 元素。
jQuery :first 选择器
选择第一个 <p> 元素。
jQuery element 选择器
选择所有的 <p> 元素。
jQuery . 选择器
选取 class="intro" 的元素。
jQuery # 选择器
选取 id="choose" 的 元素。
«
1
2
...
10
11
12
13
14
15
16
17
18
»