默认情况下将div滚动到底部并在ScrollUp上加载转发器? [英] Setting div scroll to bottom by default and Loading a repeater on ScrollUp?

查看:62
本文介绍了默认情况下将div滚动到底部并在ScrollUp上加载转发器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现这篇文章是这篇文章 [ ^ ]非常有用,我想知道它是否可以修改为看起来像facebook的私人消息,其中默认滚动设置为底部,当用户滚动以前的消息时加载。如果是,那我怎么能这样做?

I found this article THIS ARTICLE[^] which was very helpful, i was wondering if it can be modified to look like private messaging of that of facebook, in which by default scroll is set to bottom and when user scrolls up previous messages get loaded. If yes then how can i do so?

推荐答案

你必须在div中设置溢出



如果你想垂直和水平



style =溢出:滚动;



如果你想要水平< br $>


style =overflow-x:scroll;



如果你想要垂直



style =overflow-y:scroll;
You have to set overflow in div

if u want Vertical and Horizontal

style="overflow: scroll;"

if u want Horizontal

style="overflow-x: scroll;"

if u want Vertical

style="overflow-y: scroll;"


这篇关于默认情况下将div滚动到底部并在ScrollUp上加载转发器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆