js/jquery scrolling to bottom of div when the page is loaded (IE problem)

后端 未结 2 437
被撕碎了的回忆
被撕碎了的回忆 2021-01-24 22:37

My codes works perfectly on Firefox. It works on IE when the content of the div is less, it fail to scroll to bottom when the content of div is too high in IE. Button click to s

2条回答
  •  南方客
    南方客 (楼主)
    2021-01-24 23:26

    Try making the call to asd() after the DOM has been loaded. I know putting it at the bottom of the page should do this, but it cannot be relied on.

        
    
    
    
    
    

    asdasdas

    asdasdas

    asdasdas

    asdasdas

    asdasdas

    asdasdas

    asdasdas

    asdasdas

    asdasdas

    asdasdas

    asdasdas

    asdasdas

    asdasdas

    asdasdas

    asdasdas

    asdasdas

    asdasdas

    asdasdas

    asdasdas

    asdasdas

    asdasdas

    asdasdas

    asdasdas

    asdasdas

    asdasdas

提交回复
热议问题