jQuery 多个类 选择器

jQuery 教程 · 2019-03-10 05:56:44

实例

选取 class 为 "intro"、"demo" 或 "end" 的所有元素:

$(".intro,.demo,.end")

定义和用法

.class 选择器可用于选取多个 class。

注意:用逗号分隔每个 class。

注意:不要使用数字开头的 class 属性!在某些浏览器中可能出问题。

语法

$(".class1,.class2,.class3,...")

参数 描述
class 必需。规定要选取的元素的 class。

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

查看所有标签

C++ Primer Plus

C++ Primer Plus

Stephen Prata / Addison Wesley / 2011-10-18 / GBP 39.99

C++ Primer Plus, Sixth Edition New C++11 Coverage C++ Primer Plus is a carefully crafted, complete tutorial on one of the most significant and widely used programming languages today. An accessible an......一起来看看 《C++ Primer Plus》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具