Home  >  Q&A  >  body text

javascript - Problems encountered with Lazyload

When lazyload is used in this way, only the last container is valid, but the above two containers are invalid?
Could you guys please give me the same answer? ! Thanks.

This is the setting of lazyload. Use each to loop out each container ".lazy".

This is how to write the p of each container. The third one is written the same way.

PHP中文网PHP中文网2642 days ago910

reply all(1)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-07-05 11:05:10

    Wow, you actually wrote it like this, it’s going to explode.

    Just use ("img.lazy") directly

    reply
    0
  • Cancelreply