dom:原生js使div滚动到最底部

今天脑子短路,对没有出现滚动条的div疯狂操做~dom

const dom = document.querySelector(".scroll");
dom.scrollTop = dom.offsetHeight;
相关文章
相关标签/搜索