【发布时间】:2011-12-20 08:40:40
【问题描述】:
您好,我正在尝试使用 Particle tree method 为我的页面运行 javascript 调整大小 - 每当窗口分辨率改变时,就会调用不同的 CSS 样式表。
在每个样式表(default.css/thin.css/wide.css/wider.css)中,我更改了循环幻灯片的尺寸和图像的尺寸。
Previous posts建议循环存储元素的宽度和高度一次。我已尝试解决此问题:
$(document).ready(function() {
$('.slideshow')
.after('<div id="nav">')
.cycle({
fx: 'fade',
sync: true,
speedIn: 500,
speedOut: 500,
timeout: 10000,
pager: '#nav',
next: '.slideshow'
cssBefore: {
width: imagewidth,
height: imageheight
}
});
});
这对我不起作用...我也尝试过 containerResize: false;这是分配的情况! css 样式表中的重要规则?
感谢您的帮助!完整网站代码here
【问题讨论】:
标签: jquery resize slideshow cycle jquery-cycle