更新时间:2023-10-30 12:45:34
有数百种方法.
// Image actions menu
$('ul.imglist li').hover(
function() {
$(this).find('ul')
.css('display', 'none')
.fadeIn('fast')
.css('display', 'block');
},
function() {
$(this).find('ul')
.fadeOut(100);
});
应该在 mouseup 事件中...然后在 mousedown 上,您甚至可以取消悬停事件.顺便查一下绑定和解绑
should be on mouseup event... then on mousedown even you can cancel the hover event. by the way look up binding and unbinding
但为什么不使用可拖动的 ui 呢?并为自己节省一些时间
but why not use the draggable ui ? and save yourself some time end effort