滚动条滚动到指定位置 function scrollToCenter(){ var div = $("#canvas-wrap"); var top = (div[0].scrollHeight - div.height()) / 2; div[0].scrollTop = top;}转载于:https://www.cnblogs.com/linsx/p/7221... Other 2023-10-18 54 点赞 0 评论 81 浏览