jQuery移动scrollview-如何显示隐藏的内容并阻止scrollview捕捉回到初始位置 [英] jquery mobile scrollview - how to show hidden content and stop scrollview from snapping back to inital position

查看:101
本文介绍了jQuery移动scrollview-如何显示隐藏的内容并阻止scrollview捕捉回到初始位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用scrollview插件进行JQM项目.

I'm working on a JQM project using the scrollview plugin.

我已完成所有设置,并且scrollview正在运行.但是,要滚动的隐藏"内容不会完全加载,并且滚动视图始终会恢复到其初始位置.

I have everything set-up, and scrollview is working. However, the "hidden" content to be scrolled doesn't load completely and the scrollview always snaps back to its initial position.

以下是示例的链接:

示例

有什么线索可以驯服scrollview吗?

Any clues how to tame scrollview?

谢谢!

推荐答案

好.我发现了为什么它不起作用.您需要像这样的东西才能工作:

Ok. I found out why it's not working. You need something like this for it to work:

<div class="wrapper" data-scroll="x" style="width: 100px; overflow-x:scroll;">
   <div class="element2Bscrolled" style="width: 800px;">some loooong text</div>
</div>

工作示例:此处.

在我的原始帖子中,我只是混合了各个元素.

In my original post I just mixed up the elements.

这篇关于jQuery移动scrollview-如何显示隐藏的内容并阻止scrollview捕捉回到初始位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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