【发布时间】:2013-11-13 01:44:52
【问题描述】:
我有一个喊话框,我想保持滚动到底部与 IM 窗口相同。
我的html是
<div id="shoutContainer">
<table id="shoutbox">
<tbody>
<!-- shouts here -->
</tbody>
</table>
</div>
我的 CSS
#shoutContainer {
height: 100px; overflow-y: scroll;
}
如果无法通过 html 和 css 实现。我们可以在原始 javascript 中实现这一点吗?因为我没有使用任何框架
【问题讨论】:
标签: javascript html css