【发布时间】:2013-12-21 00:14:12
【问题描述】:
如果我在函数中使用 scrolltofixed 插件调用页脚的限制,我会遇到一个奇怪的问题。
由于页脚和动态内容的其他问题,我已使用限制解决此问题。
这里是original fiddle:
$('.footer').scrollToFixed( {
bottom: 0,
limit: $('.footer').offset().top,
preFixed: function() {
$(this).find('h1').css('color', 'blue');
},
postFixed: function() {
$(this).find('h1').css('color', '');
}
});
这里是fiddle with my magical flickering footer:
$('.footer').scrollToFixed( {
bottom: 0,
limit: function() {
return $('.footer').offset().top - $('.summary').outerHeight() - 0;
}
});
谁能指出我在这里失踪了吗?
【问题讨论】:
标签: jquery css function limit flicker