我正在尝试向子菜单添加一个不错的小效果,但我不能使用 marginLeft
,因为它会弄乱容器。所以我试图通过使用 left
而不是 marginLeft
来实现它,但我无法让它工作......任何想法为什么?
$('#order_list li').hover(function(){
$(this).stop().animate({ "left": "14px" }, 250, function() {
$(this).animate({ "left": "10px" }, 250);
});
},function(){
$(this).stop().animate({ "left": "4px" }, 250, function() {
$(this).animate({ "left": "0px" }, 250);
});
});
最佳答案
关于jQuery 向左 move ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10635601/