摘要: 上次又一次做了一个div固定的效果,考虑到onscroll会不停的执行。var _b = $("#bottom"); $(window).scroll(function(){ var t = $(window).scrollTop(), str; console.log(t) if(t >= 200){ str = {"position" : "fixed", "top" : 200 + "px", "right" : "0px"}; }else{ 阅读全文
posted @ 2014-01-03 14:15 楚玉 阅读(200) 评论(0) 推荐(0) 编辑