日期:2014-05-18  浏览次数:20409 次

【【无刷新聊天室,消息显示页面问题】】
display.aspx     加了ajax1.0中的timer控件,用来每隔500毫秒刷新消息显示控件Label1
现在问题来了,可以显示,滚屏始终无法解决。
如何使最新的消息,显示在Label1的底部?

------解决方案--------------------
我用js+div+ajax

------解决方案--------------------
<style> .scroll { OVERFLOW:auto; height:200px; } </style> <body onload=setInterval( 'a1.scrollTop=a1.scrollHeight ',200)> <div id=a1 class=scroll> <Table width=200 height=400 border=1> <tr> <td> &nbsp; </td> </tr> </table> </div>

------解决方案--------------------
window.setTimeout(refresh, 1000);
------解决方案--------------------
window.setTimeout(refresh, 1000);

把refresh改成你写的ajax事件
------解决方案--------------------
scroll.scrollTop=scroll.scrollHeight