标签:
wheelEvent = "onwheel" in document.createElement("div") ? "wheel" : // Modern browsers support "wheel"
document.onmousewheel !== undefined ? "mousewheel" : // Webkit and IE support at least "mousewheel"
"DOMMouseScroll"; //滚动事件的兼容
$scrollbar.addEventListener(wheelEvent,function(){ $("#tl_listgroup").css("top","0px"); },false)
标签:
原文地址:http://www.cnblogs.com/garfieldzhong/p/4769496.html