2011-07-15 40 views

回答

22

事情是這樣的:

$("#menu").bind("mousewheel", function() { 
    return false; 
}); 
+0

謝謝!這正是我需要的! –

+2

要取消上述代碼的效果,請運行:'$(「#menu」)。unbind(「mousewheel」);' –

5

嘗試使用.unmousewheel(),它也應該工作。

+0

對我來說,它沒有 –

0

必須解除綁定的容器是jspPane

在我來說,我需要在盒子只禁用它裏面#myOuterContainer

$('#myOuterContainer .jspPane').bind('mousewheel',function(){ return false; });