jQuery/[removed] scrollTop Value in all browsers?

前端 未结 1 1804
攒了一身酷
攒了一身酷 2021-01-23 04:36

maybe a few others already asked that but I couldn\'t find any answer to the problem …

    $(window).scroll(function() {

        // Only works in Firefox and I          


        
相关标签:
1条回答
  • 2021-01-23 05:25

    Use jQuery method scrolTop() it will work in all the browsers.

    $(document).scrollTop()
    
    0 讨论(0)
提交回复
热议问题