gpt4 book ai didi

jquery - 响应式的光滑图像

转载 作者:行者123 更新时间:2023-11-28 02:45:49 25 4
gpt4 key购买 nike

在桌面模式下,我想在中心模式下显示三个图像。但是在响应中我必须只显示单个图像但它在响应中显示三个图像:

enter image description here

查看

<div class="slider-section2" style="overflow:hidden">
<div class="slid-container">
<ul class="slickImage" ng-if="loadSwiper" ng-init="previewAd.loadSwiperImages()">
<li ng-repeat="image in ads.adDetailForPreview.MainAdsImages track by $index">
<div class="block-cont">
<img ng-class="IsRegularSizeAd?'':'DoubleSizeImg'" ng-src="~/Content/Images/AdsImages/{{image.Path}}" />
</div>
</li>
</ul>
</div>
</div>

Jquery

$(".slickImage").slick({
centerMode: true,
infinite: true,
autoplay: false,
centerPadding: '0px',
slidesToShow: 1,
arrows: true
});

请问有人有办法解决这个问题吗?

最佳答案

你试过断点吗?像这样:

responsive: [
{
breakpoint: 480,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
}
]

关于jquery - 响应式的光滑图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46932907/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com