我在项目上设置了滑块革命,我遇到了技术问题。滑块将显示不同尺寸的图像。属性startheight
允许我设置滑块高度,但我需要根据正在显示的图像的高度更改高度。我有这个代码来初始化插件:
$(this).show().revolution({
delay:2000,
startheight: 500,
autoHeight: "on",
navigationType:"bullet",
navigationArrows:"solo",
navigationStyle:"round",
navigationHAlign:"center",
navigationVAlign:"bottom",
navigationVOffset:20,
touchenabled:"on",
onHoverStop:"on",
shadow:1
});
autoHeight
属性没有任何区别,如果我删除startheight
,它会显示默认高度,我认为是333px。我怎样才能使高度像任何其他滑块一样变化?