与其那样做,不如
position:fixed, top:0; left:0;在窗口滚动后不让弹出按钮通过某个高度:
jQuery
$(window).scroll(function(){ if ($(this).scrollTop() > 135) { $('#task_flyout').addClass('fixed'); } else { $('#task_flyout').removeClass('fixed'); } });CSS
.fixed {position:fixed; top:0; left:0;}


