作者:手机用户2602883655 | 来源:互联网 | 2021-09-24 03:33
这篇文章主要介绍了jquery实现点击查看更多内容控制段落文字展开折叠效果,涉及jquery中fadeIn与fadeOut实现折叠与展开页面元素的功能,非常具有实用价值,需要的朋友可以参考下
本文实例讲述了jquery实现点击查看更多内容控制段落文字展开折叠效果。分享给大家供大家参考。具体如下:
这里使用jQuery实现的文字展开折叠效果,点击文字后文字内容会完整的显示出来,控制段落来显示文字,不需要的时候,可以再次点击后将内容折叠起来,也就是隐藏了一部分内容。点击查看更多的功能,在很多大网站都有在用,像一些电影简介、产品介绍有时候为了页面的布局效果,常常默认是隐藏了一部分,用户想看的时候可以点击后展开。
运行效果如下图所示:
具体代码如下:
jQuery 控制段落文字展开折叠,点击查看更多的功能
About Billabong
Gordon developed his own stitching technique, which made the garments more durable, cost effective and less labor intensive. He employed machinists, moved the operation into a factory, set up a distribution network and sponsored a team of renowned Australian surfers. The business thrived.
Since those beginnings, Billabong has expanded its product range to include boardsport products such as wetsuits, watches, surfboards, snowboard outerwear and skateboarding apparel.
希望本文所述对大家的jquery程序设计有所帮助。