摘要:
实现“鼠标滚动时,动态改变相应的样式或者效果”代码如下:$(window).scroll(function() { var scrolls = $(this).scrollTop(); $(".context_block").each(function(){ //类名为“context_block”的块级元素 var height = $(this).height(); if($(this).position().top + height-60> scrolls){ var _index = $(".context_block").index($(
阅读全文