ajax-loader,ajax-loader.gif not showing

在本文中,作者遇到使用 Slick.js 滑动插件时,加载指示器(ajax-loader.gif)不显示的问题。他们提到即使限制了网络速度,加载图标仍然无法在页面上看到。作者发现 `.slick-loading` 类只应用到正在加载的图片,而不是顶级滑动元素。他们询问是否 Slick.js 应该将 `.slick-loading` 类添加到顶级滑动元素,并寻求解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

I apologize ahead of time if this is not really an issue. I can't seem to see the ajax-loader spinner at all in my pages or on http://kenwheeler.github.io/slick/. I have even tried throttling my connection speed.

Slick.js's css targets

.slick-loading .slick-list { background: #fff url("./ajax-loader.gif") center center no-repeat; }

but .slick-loading isn't applied to the top level html element, .slick-loading is applied only to the image that is being loaded.

I have also tried with the latest 1.3.13

Is slick.js supposed to add a .slick-loading class to the top level slider html element? If so, I must be missing it? Maybe the class isn't added so the spinner isn't appearing?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值