Slick Slider—仅移动设备

huangapple go评论64阅读模式
英文:

Slick Slider—Mobile Only

问题

我想在手机屏幕上制作一个带有我的卡片的滑块。

我已经完成了大部分工作。问题是,当我从大屏幕切换到手机尺寸时,slick 不起作用,但如果我重新渲染它,它就开始工作了。这是什么原因?

我的卡片代码和 slick 代码在以下链接中。

Slick Slider—仅移动设备

我希望在从计算机尺寸切换到手机尺寸时,滑块能够无需重新渲染就正常工作。

英文:

I want to make a slick slider with my cards only on the phone screen.

And I've done most of it. The problem is that when I switch from the big screen to the phone size, the slick doesn't work, but if I render it, it starts working. What is the reason for this?

My card codes and slick codes are in the link.

Slick Slider—仅移动设备

I want the slider to work without rendering when I switch from computer size to phone size.

答案1

得分: 1

尝试这个:

responsive: [
    {
        breakpoint: 480,
        settings: "unslick"
    }
]
英文:

Try this:

responsive: [
        {
           breakpoint: 480,
           settings: "unslick"
        }
     ]

huangapple
  • 本文由 发表于 2023年2月23日 21:20:37
  • 转载请务必保留本文链接:https://go.coder-hub.com/75545412.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定