search

Home  >  Q&A  >  body text

javascript - jquery real event, when the page scrolls to the top of each DIV, execute an event

jquery True event, when the page scrolls to the top of each p, execute an event

我想大声告诉你我想大声告诉你2754 days ago617

reply all(1)I'll reply

  • 为情所困

    为情所困2017-05-18 10:52:45

    You $("p") can get all p. Then postion().top will have their top, and then in your scroll event, judge that the current scroll height exceeds that, and trigger something

    reply
    0
  • Cancelreply