2
你好,我有一个聊天例子如何将滚动条设置为聊天系统的底部?
https://bootsnipp.com/snippets/vrzGb
,我想滚动到页面底部有:
window.scrollTo(0,document.body.scrollHeight);
但我需要它的类.chat_area
。我怎样才能做到这一点?
$('.chat_area').scroll(0,document.body.scrollHeight);
重复:[https://stackoverflow.com/questions/270612/scroll-to-bottom-of-div](https://stackoverflow.com/questions/270612/scroll-to-bottom-of-div) –
ok thnx for your help –