0
点赞
收藏
分享

微信扫一扫

js实现将div等滚动条(scrollbar)保持在最底部的方法


    总结了两种方法:

1: div.scrollTop = div.scrollHeight;
function
with(window.document.body) { 
"scrollLeft",1024);  
"scrollTop",4000); 
             }
        }
       setScrollLeft();

参考如下:

  1:http://www.shenlanit.com/articles/js-javascript-div-keep-scrollbar-button.html


举报

相关推荐

0 条评论