jQuery :visible 选择器

jQuery 教程 · 2019-03-10 14:13:21

实例

选取所有可见的 <p> 元素:

$("p:visible")

定义和用法

:visible 选择器选取当前可见的每个元素。

除以下几种情况之外的元素即是可见元素:

  • 设置为 display:none
  • 带有 type="hidden" 的表单元素
  • width 和 height 设置为 0
  • 隐藏的父元素(这也会隐藏子元素)

语法

$(":visible")

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

查看所有标签

Sexy Web Design

Sexy Web Design

Elliot Stocks / SitePoint / 2009-03-28 / $39.95

Description A guide to building usable, aesthetically pleasing interfaces for web sites and web applications by applying timeless principles of user-centered design. This book focuses on practical ......一起来看看 《Sexy Web Design》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

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

HTML 编码/解码

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具