标签:height 指定 style function span wrap scrolltop 滚动 var
function scrollToCenter(){ var div = $("#canvas-wrap"); var top = (div[0].scrollHeight - div.height()) / 2; div[0].scrollTop = top; }
标签:height 指定 style function span wrap scrolltop 滚动 var
原文地址:http://www.cnblogs.com/linsx/p/7221788.html