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

后端 未结 2 439
被撕碎了的回忆
被撕碎了的回忆 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:29

    Wait until the document is loaded:

    $(document).ready(function(){asd();});
    

    Putting an instruction somewhere at the end of the document doesn't be the same like waiting for the ready-event.

提交回复
热议问题