0
我试图让2套类在jQuery中有固定位置。滚动固定位置= jQuery Jank与Safari中的偏移顶部
$(window).scroll(function(){
$(".staticTextGrid").each(function(){
$(this).css('margin-top',($(window).scrollTop() - $(this).parent().offset().top+160));
});
$(".staticTextGridTop").each(function(){
$(this).css('margin-top',($(window).scrollTop() - $(this).parent().offset().top));
});
});
这就是我正在做的,但它不想在Safari浏览器中播放很好(导致它抖动和抖动)。任何正确的方向点都会很棒。我提前感谢。
嘿谢谢你的回应,并抱歉不清楚。它在safari中引起骚动。在其他浏览器中不存在的紧张不安的口吃。我尝试了你的建议,但仍然感到不安。任何其他刺伤它会很好。谢谢。 – billNugz
好吧在safari或IE中检查这个小提琴,https://jsfiddle.net/billNugz/y4x1cbcz/ 它显示抖动。任何帮助都会很棒。并支持http://ianlunn.co.uk为我提供了一个基础。 – billNugz