0
要正确显示聊天窗口,我使用此代码结束:显示在聊天室
function baja_el_chat() {
var height = 0;
$('div#my-conversation .message').each(function(i, value){
height += parseInt($(this).height());
});
height += '';
$('div#my-conversation').animate({scrollTop: height});
}
你可以在http://www.noteplug.com/jquery-chat上看到它 –
http://stackoverflow.com/questions/15688656/how-to-keep-a-div-scrolled-to-the-底作为-HTML内容-IS-所附到它-经由-J – Alvaro