css overflow : auto를 사용하여 부서의 scrollHeight를 어떻게 결정합니까?
난 노력 했어:
$('test').scrollHeight();
$('test').height(); but that just returns the size of the div not all the content
궁극적으로 나는 채팅을 만들고 화면의 현재 메시지에 대한 스크롤 막대를 항상 가지고 있습니다.
그래서 다음과 같은 생각을했습니다.
var test = $('test').height();
$('test').scrollTop(test);
감사합니다,
브라이언