Uncaught TypeError: Cannot read property 'top' of undefined

前端 未结 6 2303
长情又很酷
长情又很酷 2020-11-30 23:06

I apologize if this question has already been answered. I\'ve tried searching for solutions but could not find any that suited my code. I\'m still new to jQuery.

I h

6条回答
  •  再見小時候
    2020-11-30 23:48

    I had the same problem ("Uncaught TypeError: Cannot read property 'top' of undefined")

    I tried every solution I could find and noting helped. But then I've spotted that my DIV had two IDs.

    So, I removed second ID and it worked.

    I just wish somebody told me to check my IDs earlier))

提交回复
热议问题