pao*_*loi 1 jquery mouseenter mouseleave
我需要在鼠标悬停时扩展div,这种情况发生得相当好但是当鼠标离开div时却没有恢复正常
有些人来了我的档案http://jsfiddle.net/MyKnB/
$("#logo-expand").mouseenter(function() {
$(this).animate({
width: "56px;"
}, 300 );
});
$("#logo-expand").mouseleave(function() {
$(this).animate({
width: "170px"
}, 300 );
});
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
309 次 |
| 最近记录: |