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
The Smashing Book
Jacob Gube、Dmitry Fadeev、Chris Spooner、Darius A Monsef IV、Alessandro Cattaneo、Steven Snell、David Leggett、Andrew Maier、Kayla Knight、Yves Peters、René Schmidt、Smashing Magazine editorial team、Vitaly Friedman、Sven Lennartz / 2009 / $ 29.90 / € 23.90
The Smashing Book is a printed book about best practices in modern Web design. The book shares technical tips and best practices on coding, usability and optimization and explores how to create succes......一起来看看 《The Smashing Book》 这本书的介绍吧!