我在jqm应用程序中使用iscrollview。我有各种使用本地jqm弹出窗口小部件的弹出窗口。在iPhone 4上使用iOS7 (6.0也有同样的问题),只有在改变方向时才能激活正确的滚动。当应用程序第一次加载时,在纵向,内容的下半部分不会滚动到视图中,但更改方向时,弹出窗口会根据需要更改大小和位置,所有内容都是可滚动的。改回纵向-弹出内容现在可以正常滚动了吗?
<div data-role="popup" id="popupBasic">
<div class="header" data-role="header">
<h1>Stuff</h1></div>
<div class="content" data-role="content" data-iscroll>
<h3>Heading here</h3>
<p>Lots of copy here</p>
<p>Lots of copy here</p>
<p>Lots of copy here</p>
<p>Lots of copy here</p>
<p>Lots of copy here</p>
</div>
</div>一些基本的css:
.ui-content {
padding: 0 !important;
}
.ui-listview {
margin: 0 !important;
}
div.iscroll-scroller {
width: 100% !important;
}
.ui-popup .ui-content {
height: 150px !important;
}我已经阅读了很多iscrollview的文档,特别是关于iscrollview的refresh(),但我不确定如何实现它。我是否需要对js文件中的各种参数进行更改,或者是否需要实现一些其他的解决方法?
发布于 2014-01-22 04:34:25
你必须给popUp一个固定的大小!看这里:http://www.gajotres.net/using-iscroll-with-jquery-mobile/
https://stackoverflow.com/questions/19973575
复制相似问题