How to scroll to top of scrollable div ?
由 Jean-Philippe Vignolo
2013年 08月 09日 10:15
English(英语)
1 回复
Hi,
I have a scrollable div like :
<div data-scroll="y" id="wrapper">blablabla scrollable content.</div>
It works well.
But latter in my javascript code I want to make it scroll back to top depending on a certain user action.
I tried both
$("#wrapper .ui-scrollview-view").scrollTop(0);
and
$("#wrapper").scrollTop(0);
but none is working...
What is the corect way to make it scroll to top ?
Regards
Jean-Philippe
编辑者为: Brock Boland 开 17 3月, 2014 原因: Paragraph tags added automatically from tizen_format_fix module.
您必须登录才能使用此服务。立即登录?
The tag you entered already exists.
是否要将这篇帖子报告为垃圾邮件?
已将该帖报告为垃圾邮件。
cannot be empty.
是否确定要取消并返回列表?
The code has been copied to the clipboard.
输入标题。
所有分类
一般支持
Tizen .NET
Web 应用程序开发
本机应用程序开发
SDK 和 IDE
--------
--------