$('.button').click(function() {
$('#small-form').animate({
width: ['toggle', 'swing'],
height: ['toggle', 'swing'],
opacity: 'toggle'
}, 5000, 'linear');
$('#big-form').animate({
width: ['toggle', 'swing'],
height: ['toggle', 'swing'],
opacity: 'toggle'
}, 5000, 'linear');
});
...这隐藏了这两个元素,我想隐藏小而显示大的形式。动画div显示/隐藏(jQuery)
谢谢!
是'#big-form' already hidden? – jAndy 2010-10-05 06:54:42
包装是100px与溢出:隐藏,小型100px所以大型隐藏,即使没有显示:无 – 3zzy 2010-10-05 06:58:17