jQuery :first-child 选择器

jQuery 教程 · 2019-03-10 07:43:41

实例

选取属于 <p> 的父元素中第一个为 <p> 的元素:

$("p:first-child")

定义和用法

:first-child 选择器选取属于其父元素的第一个子元素。

提示:请使用 :last-child 选择器来选取属于其父元素的最后一个子元素。

语法

$(":first-child")

点击查看所有 jQuery 教程 文章: https://www.codercto.com/courses/l/35.html

查看所有标签

Landing Page Optimization

Landing Page Optimization

Tim Ash / Wiley Publishing / 2008-1-29 / USD 29.99

在线阅读本书 How much money are you losing because of poor landing page design? In this comprehensive, step-by-step guide, you’ll learn all the skills necessary to dramatically improve your bottom li......一起来看看 《Landing Page Optimization》 这本书的介绍吧!

html转js在线工具
html转js在线工具

html转js在线工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具