首页 > 代码库 > div滚动,页面不滚动

div滚动,页面不滚动

<div class="select_option_list" onm ousewheel="return scroll(event,this)"></div>



var scroll = function(event,scroller){
    var k = event.wheelDelta? event.wheelDelta:-event.detail*10;
    scroller.scrollTop = scroller.scrollTop - k;
	    return false;
	};

  

div滚动,页面不滚动