- 移除手算高度逻辑,自适应模式启用 swiper 原生 autoHeight - image 保持 mode=widthFix,完整展示不裁切 - 删除 .detail-carousel-wrap 固定比例/高度的覆盖依赖 Co-Authored-By: WorkBuddy <workbuddy@tencent.com>
This commit is contained in:
@@ -18,17 +18,15 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* adaptive 模式:去掉固定 1:1 比例,按图片真实比例自适应高度,完整显示不裁剪 */
|
||||
/* adaptive 模式(方案 A):删除固定 1:1 比例与固定高度,
|
||||
改用 swiper 原生 auto-height + image widthFix,海报有多高轮播就有多高,无裁切 */
|
||||
.detail-carousel-wrap--adaptive {
|
||||
aspect-ratio: auto;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.detail-carousel-wrap--adaptive .detail-carousel {
|
||||
height: auto;
|
||||
transition: height 0.2s ease;
|
||||
}
|
||||
|
||||
.detail-carousel-wrap--adaptive .detail-carousel,
|
||||
.detail-carousel-wrap--adaptive .detail-carousel-item,
|
||||
.detail-carousel-wrap--adaptive .detail-carousel-image {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user