jQuery API | 返回首页目录 | jQuery API 中英文对照版 |
slideUp(speed, callback) |
slideUp(speed, callback)
通过高度变化(向上减小)来动态地隐藏所有匹配的元素,在隐藏完成后可选地触发一个回调函数。 这个动画效果只调整元素的高度,可以使匹配的元素以“滑动”的方式隐藏起来。 返回值:jQuery 参数:
示例: $("p").slideUp("slow"); 示例: $("p").slideUp("slow",function(){ alert("Animation Done."); }); slideDown( speed, callback )Reveal all matched elements by adjusting their height and firing an optional callback after completion. Only the height is adjusted for this animation, causing all matched elements to be revealed in a "sliding" manner. Return value: jQuery
Example: $("p").slideDown("slow"); Example: $("p").slideDown("slow",function(){ alert("Animation Done."); }); Hide all matched elements by adjusting their height and firing an optional callback after completion. Only the height is adjusted for this animation, causing all matched elements to be hidden in a "sliding" manner. Return value: jQuery
Example: $("p").slideUp("slow");Example: $("p").slideUp("slow",function(){ alert("Animation Done."); }); |