jQuery Mobile - 灰色死角(图片)
Link to my app: http://gizeto.com/app_orange/index.html
I don't understand why this occurs on orientationchange
. Does anybody recognize this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来好像您正在使用 iScroll 作为可滚动区域。如果是这种情况,那么每当
resize
或orientationchange
事件在window
对象上触发时,您都需要更新 iScroll 实例:来源:http://cubiq.org/iscroll-4#refreshmethod
这应该保留当文档大小发生变化时,iScroll 区域会显示正确的尺寸。如果 iScroll 容器(在您的情况下是
data-role="content"
元素)仍然没有更新其高度,那么您可能需要手动执行此操作:It appears as though you are using iScroll for your scrollable areas. If this is the case then you will need to update the iScroll instance whenever a
resize
ororientationchange
event fires on thewindow
object:Source: http://cubiq.org/iscroll-4#refreshmethod
This should keep the iScroll area the correct dimensions when the size of the document changes. If the iScroll container (in your case this is the
data-role="content"
element) still doesn't update it's height then you may need to do that manually: