我正在我的应用程序(PhoneGap, JQM 1.3, Android)上使用PhoneGap, JQM 1.3, Android。在这方面做得很好。是宝石。
实际上,我正在三星Galaxy S3上进行测试。
我的第一页垂直维度很大(大约6000 of ),由一堆带有图像的<div>容器组成(带有外部src)。
这些div容器是基于Json数据动态地添加到内容DIV中的。然后我要做一个refresh。到目前为止一切都很好。
但我注意到的是,当在我的内容data-iscroll中省略<div>属性时,滚动会更流畅,而且一点也不波动。但是,当将data-iscroll属性添加到content时,滚动是不稳定的。
我认为这是因为锚标签或图像,所以我更换了div容器的跨度,并在其中添加一些文字。我复制了大约30个跨度,并观察了滚动的行为。它是波涛汹涌的--尽管跨度很大。然后,我只走了15跨,滚动更流畅一些。它与内容-div中的容器数量有关。
我的标记以更简化的形式出现,如下所示:
<div data-role="content" data-iscroll class="iscroll-wrapper">
<div class="iscroll-scroller">
<div class="iscroll-content">
<p>This is some content that I want to scroll</p>
<p>This is some content that I want to scroll</p>
<p>This is some content that I want to scroll</p>
<p>This is some content that I want to scroll</p>
<p>This is some content that I want to scroll</p>
<p>This is some content that I want to scroll</p>
<p>This is some more content</p>
... more content up to 6000px in vertical direction
</div>
</div>
</div>有人能证实这种行为吗?有解决办法吗?
发布于 2013-10-04 15:34:58
好吧,终于从乔恩·塔拉那里得到了答案。iScrollView显然只适用于具有小型而非复杂标记的WebViews。读取这里
https://stackoverflow.com/questions/19056732
复制相似问题