jQuery 循环插件
你知道为什么 jQuery 循环插件在滑动图像时会破坏背景图像居中吗? (没有激活插件,它可以正常工作)
这是一个 我的页面演示(尝试调整大小窗口或缩小并看看我的意思 - 背景图像被裁剪)
Do you have any idea why jQuery cycle plugin breaks backgorund image centering when sliding images? (without the plugin activated it works okay)
Here is a demo of my page (try to resize the window or zoom out and see what I mean - the background image gets cropped)
Cycle 插件设置您在加载时循环的 div 的宽度,并且不考虑调整大小。 Cycle 有一个 destroy 方法。您应该能够循环调用 destroy 并在窗口调整大小事件中重新创建它。
http://jquery.malsup.com/cycle/options.html
The cycle plugin sets the width of the divs you are cycling on load, and doesn't account for a resize. Cycle has a destroy method. You should be able to call destroy on cycle and recreate it on a window resize event.
http://jquery.malsup.com/cycle/options.html