js/jquery DIV滚动条自动滚到底部


var item = "div";

//javascript
var e = document.getElementById(item);
e.scrollTop = e.scrollHeight;//让滚动条自动滚动顶部
showMessage(e.scrollTop +"==="+ e.scrollHeight);

//jquery
$("#"+item).scrollTop($("#"+item)[0].scrollHeight);
普人特福的博客cnzz&51la for wordpress,cnzz for wordpress,51la for wordpress