我在此页面上使用 jquery scrollto 插件:http: //tinyurl.com/3l49ccu)
当我调整窗口大小时,滚动不再起作用,因为“偏移”设置发生了变化。我想在调整大小时重新定义此设置。
该插件的作者在此页面的评论中解释了“如何取消绑定”:http: //flesler.blogspot.com/2008/03/jqueryserialscroll-110-released.html
但我无法让它工作。
我试过这个:
$(window).bind("resize", function(){
$('#sideshow').unbind('.serialScroll');
}
谢谢
仍在调查……我在这里问了这个问题:http: //forum.jquery.com/topic/how-to-reset-serialscroll-settings-on-window-resize