Home > Web Front-end > JS Tutorial > body text

jQuery仅用3行代码实现的显示与隐藏功能完整实例_jquery

WBOY
Release: 2016-05-16 15:37:20
Original
1182 people have browsed it

本文实例讲述了jQuery仅用3行代码实现的显示与隐藏功能。分享给大家供大家参考。具体如下:

jQuery技术相当好使用,的确可以用很少的代码实现想要的功能,比如这款经常用到的“显示”与“隐藏”的功能,只需要3行代码就实现了,确实够给力。

运行效果截图如下:

在线演示地址如下:

http://demo.jb51.net/js/2015/jquery-simple-hide-show-style-demo/

具体代码如下:





3行代码实现显示与隐藏




tab1
详细说明:今天你要嫁给我嘛~
tab2
详细说明:北京、上海四日游
tab3
详细说明:河南是华夏文明的根源
Copy after login

希望本文所述对大家的jQuery程序设计有所帮助。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!