swiper 不同页面高度自适应时间:2023-03-09 09:26:07 在使用swiper写页面滑动时发现不同页面高度无法自适应,使用autoHeight:true也不起作用 研究了一下发现可以这样设置 .swiper-slide{ overflow: hidden; } .swiper-slide-active{ overflow: auto !important; } 在页面切换时候将其他页面超出页面的部分隐藏就不会影响到正常页面的高度,暂无发现bug,如果有更好地解决方案欢迎指出