Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
.slideUp 功能完成后,有没有办法阻止元素更改为 display:none?
如果可能,我希望该功能在达到 div 的最低高度后停止。
只需在 height 属性上使用 $.animate 即可。
$('#myelement').animate({ height: 0 }, { duration: 'slow' });
http://jsfiddle.net/sZX2s/