英文:
Slick Slider—Mobile Only
问题
我想在手机屏幕上制作一个带有我的卡片的滑块。
我已经完成了大部分工作。问题是,当我从大屏幕切换到手机尺寸时,slick 不起作用,但如果我重新渲染它,它就开始工作了。这是什么原因?
我的卡片代码和 slick 代码在以下链接中。
我希望在从计算机尺寸切换到手机尺寸时,滑块能够无需重新渲染就正常工作。
英文:
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.
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"
}
]
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论