// 滚动条显示在最下方 function sc() { var e=document.getElementById("msgBox"); if(e) e.scrollTop=e.scrollHeight; } 如图