gpt4 book ai didi

javascript - 固定位置在 IOS 上延迟

转载 作者:数据小太阳 更新时间:2023-10-29 05:55:04 25 4
gpt4 key购买 nike

在我的网站上用 iPad 测试词缀后,我发现它不能正常工作,我用眼镜观察它是 iOS 的问题 https://github.com/twbs/bootstrap/issues/11560目前还没有简单的解决方案。

iOS just has problems with calculating fixed position as you scroll. Basically you don't get an updated fixed position until a slight delay after you stop scrolling

有什么我可以做的让它工作吗,可能有人已经做了一些解决?

最佳答案

有时,这对我来说是个窍门。

    .youraffixelement {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}

它在 iOs 设备上启用硬件加速,滚动位置的计算速度更快。

关于javascript - 固定位置在 IOS 上延迟,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20772451/

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