问题描述
每个人,我都尝试使用JQuery的slideToggle来读取更多功能,但问题是读取更多功能通常在页面上显示一些文本,并且当用户单击读取更多链接",按钮等时,面板向下滑动并显示文本的其余部分,但是使用slideToggle,我看不到任何起点或东西来显示滑动面板前的前几行.数据是从数据库中检索出来的,因此是动态的.
Everyone, I am trying to do read more feature with JQuery's slideToggle thing but the problem is as read more feature normally there is a little text shown on the page and when the user clicks on read more link,button etc. the panel slides downwards and shows the rest of the text but with slideToggle I can't see any start point or something to show first couple of lines before sliding panel. The data is retrieved from database so it's dynamic.
我希望我能描述这个问题:(所以有人可以向我展示一种使用jquery的方法.
I hope I can describe the problem :( so could some one show me a way to do it with jquery.
预先感谢...
推荐答案
实际上,我发现了更好的方法:)
Actually I've found something better :)
jQuery Expander插件
http://plugins.learningjquery.com/expander/index.html #getting-started
这篇关于阅读更多JQuery slideToggle方法的功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!