只若初见

实现保持滚动条在最底部.

电脑版发表于:2021/12/4 20:24


需要保持滚动条在底部的对象.scrollTop = 需要保持滚动条在底部的对象.scrollHeight;如下

 msgcontent.scrollTop = msgcontent.scrollHeight;


关于TNBLOG
TNBLOG,技术分享。技术交流:群号677373950
ICP备案 :渝ICP备18016597号-1
App store Android
精彩评论
{{item.replyName}}
{{item.content}}
{{item.time}}
{{subpj.replyName}}
@{{subpj.beReplyName}}{{subpj.content}}
{{subpj.time}}
猜你喜欢