jQuery listview双滚动条(有时)



我希望有人能帮助我。我有一个jQuery移动页面,在调用changePage的ajax回调后我得到两个滚动条

$.mobile.changePage('#page_with_listview');

在页面显示事件上,我做了一个 $page_with_listview。AJAX 查找并在成功回调中填充列表视图并触发刷新:

$('#my_listview').listview('refresh')

我得到的结果(不是每次):

结果截图(我还不允许发布图像)

有没有人知道发生了什么?

我有一个类似的问题,并确保我在 themeroller 自己的风格解决它之后包含 jquery 移动 css。 类似的东西

<link rel="stylesheet" href="my-style.min.css" />
<link rel="stylesheet" href="jquery.mobile.structure-1.3.0.min.css" />

而不是

<link rel="stylesheet" href="jquery.mobile.structure-1.3.0.min.css" />
<link rel="stylesheet" href="my-style.min.css" />

最新更新