IntersectionObserver 里 isIntersecting 永远是 false threshold 和 rootMargin 怎么调才让懒加载触发 陆零云 2026-11-09 11:15:32 37 0 现象:懒加载图片一直不显示,isIntersecting 始终 false 给图片列表加 IntersectionObserver 做懒加载,图片明明在视口里但回调里 isIntersecting 每次都是 false,src 拿不到。Console 打印了位置信息,确实和 root 有重叠。排查发现是 threshold 设成 [1.0],但顶部导航栏压了 10%,实际只 90% 可见。 根因:threshold 设太高,实际交集比例没达标 thres...