jQuery :last-child 选择器

jQuery 教程 · 2019-03-10 08:13:07

实例

选取属于其父元素的最后一个 <p> 的子元素:

$("p:last-child")

定义和用法

:last-child 选择器选取属于其父元素的最后一个子元素。

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

语法

$(":last-child")

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

查看所有标签

Math Adventures with Python

Math Adventures with Python

Peter Farrell / No Starch Press / 2018-11-13 / GBP 24.99

Learn math by getting creative with code! Use the Python programming language to transform learning high school-level math topics like algebra, geometry, trigonometry, and calculus! In Math Adventu......一起来看看 《Math Adventures with Python》 这本书的介绍吧!

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具