`
这些年
  • 浏览: 387870 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

jq 实现瀑布流

    博客分类:
  • js
 
阅读更多
$(window).scroll(function(){   
			  var vtop=$(document).scrollTop(); //滚动条到浏览器窗口顶部的距离
			  var document_height=$(document).height();//得到页面高度
			  var wind_height=$(window).height();//得到浏览器高度
			  if((document_height-vtop-wind_height)<=10){ 
				 //要执行的代码
			  } 
			  })

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics