【发布时间】:2017-11-27 18:30:59
【问题描述】:
我在我的应用程序中使用了 ion-slide-box。有时,幻灯片内容的高度不会填满整个内容。这意味着我在幻灯片底部有一个空白区域。在这种情况下,用户也应该能够在滑动底部的空白区域时滑动。但是,这不起作用,因为离子载玻片的大小不是 100%。 我也无法将大小设置为 100%。我已经尝试了以下方法:
.slider{
height:100%;
}
.slider-slide {
height: 100%;
min-height:100%;
}
使用上面的代码,幻灯片内容仍然不是 100%。谢谢您的帮助。 这是滑动框的 html:
<ion-content>
<ion-slide-box class="slider" on-slide-changed="slideChanged($index, this)" show-pager="false" active-slide="1" ng-init="handleSlideEnabling()" does-continue="true">
<ion-slide class="slider-slides" ng-repeat="question in questions">
<div class="slider-slide">
... some content
</div>
</ion-slide>
</ion-slide-box>
</ion-content>
【问题讨论】:
-
请添加您的 html。
-
我在你的 html 中没有看到
.slider和.slider-slide... -
@Chris:那是因为以后可以用 html 替换 angular 指令。
-
我明白了,但这个问题与 css 相关,而不是 Angular。所以我对预渲染的标记不感兴趣。我需要查看提到的课程。
-
@Chris 我更新了我的问题。
标签: css ionic-framework slide