我希望 slider 根据事件幻灯片高度调整其大小。
有一个选项 autoHeight:true 但它不起作用
options:
{
autoHeight:true
}
仅当 ion-content scroll 设置为 false 时才有效
最佳答案
我可以用这个css在ionic中制作swiper以具有自动高度大小
.swiper-wrapper {
position: relative;
}
我的选项只是 ionic 文档中显示的默认选项
vm.options = {
loop: true,
effect: 'fade',
speed: 500,
};
关于ionic-framework - 在 Ionic 中,如何通过 ion-content 可滚动将 ion-slides autoHeight 设置为 true?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36303456/