Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Jquery 的 Just Another Carousel 插件,我遇到了一些我不确定的问题,因此它无法正常工作。我使用这个插件是因为我需要固定高度而不是固定宽度。
有什么帮助吗?
这是一个缓存时间问题,DOM 准备好并不意味着所有图像都已加载......当它们不是时,您会在该页面中看到问题(一些最后加载的图像被遗漏)。
而不是这个:
$(init); // on DOM load
您应该使用它,它会在图像准备好后触发:
$(window).load(init);