overflow-y: auto;
var showContent = $(".show-chat-content"); showContent[0].scrollTop = showContent[0].scrollHeight;
在js中这样写,会保持滚动条一直在最下面。