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.
我想在 div 悬停时从左到右显示 div,并在隐藏时从右到左缩回。如何更改默认的显示和隐藏功能?看来,对于显示,div 的高度和宽度都会受到影响,对于隐藏也是如此。有没有办法只影响宽度?
这是更改 jquery 对话框的 show()/ hide() 动画的代码:
$('#dialog1').dialog({ autoOpen: false, show: 'slide', hide: 'explode', buttons: { 'Close': function () { $(this).dialog('close'); } }, closeOnEscape: true, resizable: false });