方法大家都懂的。
滚动自己写生一段代码就好了
window.onscroll = function() { var _index = getShort(); var oLi = aLi[_index]; var scrollTop = document.documentElement.scrollTop || document.body.scrollTop; if ( getTop( oLi ) + oLi.offsetHeight < document.documentElement.clientHeight + scrollTop ) { if ( b ) { b = false; iPage++; getList(); } } }; function getShort() { var index = 0; var ih = aLi[index].offsetHeight; for (var i=1; i<iLen; i++) { if ( aLi[i].offsetHeight < ih ) { index = i; ih = aLi[i].offsetHeight; } } return index; } function getTop(obj) { var iTop = 0; while(obj) { iTop += obj.offsetTop; obj = obj.offsetParent; } return iTop; }