diff --git a/src/components/HomePopupAdv/index.vue b/src/components/HomePopupAdv/index.vue index a64e9dc..70dd39e 100644 --- a/src/components/HomePopupAdv/index.vue +++ b/src/components/HomePopupAdv/index.vue @@ -66,6 +66,14 @@ const close = () => { height: 169px; width: 300px; margin-bottom: 6px; + // 广告图多是 720×300(2.4),和容器 300:169 比例对不上, + // lazyImg 默认 object-fit: cover 会把左右各裁掉 13%。 + // 同安卓 BoxFit.fill:拉伸铺满而不裁切,保证广告内容完整 + :deep(.animationImg) { + img { + object-fit: fill !important; + } + } } .close { height: 36px;