📜  平滑滚动到 div java 脚本 - Cobol 代码示例

📅  最后修改于: 2022-03-11 15:04:33.606000             🧑  作者: Mango

代码示例1
var element = document.querySelector("#post-container");

// smooth scroll to element and align it at the bottom
element.scrollIntoView({ behavior: 'smooth'});