gpt4 book ai didi

jquery scrolltofixed 空白

转载 作者:行者123 更新时间:2023-11-28 13:30:56 33 4
gpt4 key购买 nike

该问题在每个浏览器中的表现都不同,例如在 Firefox 中大约一个空格如果您再次滚动到顶部,则会出现具有相同高度的滚动框。在 chrome 中,滚动时框会变得狭窄等等......

使用的调用是:

    for (i = 1; i < $('.picbox').length; i++) {
$('#picbox' + i).scrollToFixed({
marginTop: 50,
limit: $('#pic' + (i + 1)).offset().top - $('#picbox' + i).height() - 30
});
}

我尝试过的:

  • 互联网...
  • 更改边距、高度等
  • 给图片固定高度

嗯...检查行为: http://www.animize.de/users/galerie/showall

它应该是这样的: http://jsfiddle.net/y3qV5/760/

很高兴得到任何答案...我想这与 css 有关但不确定...

最佳答案

好吧,这是相当多的研究工作 - 首先你必须取消设置 scrolltofixed 函数......

                           for (i = 1; i < $('.picfeeditem').length; i++) {
if ($.isScrollToFixed($('#picbox' + i)))
{
$('#picbox' + i).trigger('remove.ScrollToFixed');
}
$('#picbox' + i).scrollToFixed({
marginTop: 50,
limit: $('#pic' + (i + 1)).offset().top - $('#picbox' + i).height() - 40
});
}

还有一些 css 工作,让属性溢出很重要:隐藏在容器元素上,因为 scrolltofixed 添加了一些奇怪的容器,留下了一些空白......但它现在正在工作。

关于jquery scrolltofixed 空白,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13578487/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com