📜  在 div css 代码示例中设置滚动位置底部

📅  最后修改于: 2022-03-11 14:47:36.803000             🧑  作者: Mango

代码示例3
// scroll to end
    var scrollDiv = document.getElementById("moveToBottom");
    scrollDiv.scrollTop = scrollDiv.scrollHeight;