Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我很困惑是什么让我用css设置的背景图像在图像进入视野时加载,有时不加载。也就是说,我的代码中有一个场景(如果有帮助,我可以给出示例),我可以在其中查看我的网络流量,并且在滚动到视图之前我看不到图像通过网络加载。为了实现这一点,我已经从使用标准 img 标签更改为 css 背景。
现在,我有另一个简单的例子,我只有在我看来是一样的
关于何时加载的任何指南?
谢谢