首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >iscrollview和jquery移动弹出窗口底部内容隐藏

iscrollview和jquery移动弹出窗口底部内容隐藏
EN

Stack Overflow用户
提问于 2013-11-14 17:10:36
回答 1查看 340关注 0票数 2

我在jqm应用程序中使用iscrollview。我有各种使用本地jqm弹出窗口小部件的弹出窗口。在iPhone 4上使用iOS7 (6.0也有同样的问题),只有在改变方向时才能激活正确的滚动。当应用程序第一次加载时,在纵向,内容的下半部分不会滚动到视图中,但更改方向时,弹出窗口会根据需要更改大小和位置,所有内容都是可滚动的。改回纵向-弹出内容现在可以正常滚动了吗?

代码语言:javascript
复制
<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:

代码语言:javascript
复制
.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文件中的各种参数进行更改,或者是否需要实现一些其他的解决方法?

EN

回答 1

Stack Overflow用户

发布于 2014-01-22 04:34:25

你必须给popUp一个固定的大小!看这里:http://www.gajotres.net/using-iscroll-with-jquery-mobile/

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19973575

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档