仅供参考: function parentNotRoll($id){ var flg;//标记滚动方向,true-向下,false-向上 var $test = document.getElementById($id); var eventType = 'mousewheel'; // 火狐是DOMMouseScroll事件 if (document.mozHidden !== undefined) { eventType = 'DOMMouseScroll'; } myAddEvent($te…
/// 获得指定元素的父元素 /// </summary> /// <typeparam name="T">指定页面元素</typeparam> /// <param name="obj"></param> /// <returns></returns> public T GetParentObject<T>(DependencyObject obj) where T :…