我怎么能阻止这个?我只希望当光标在它上面时滚动身体.
示例:JsFiddle
FIDDLE
$( '.area' ).on( 'mousewheel',function ( e ) { var event = e.originalEvent,d = event.wheelDelta || -event.detail; this.scrollTop += ( d < 0 ? 1 : -1 ) * 30; e.preventDefault(); });