问题描述
|
我正在使用以下
带有Nextgen Gallery和JQuery Cycle Lite插件的Wordpress 3.1.1。
我已经从http://jquery.malsup.com/cycle/lite/下载了最新版本的Cycle Lite插件。
我遇到的问题是我正在使用的图库中有一些人像图像,尽管我已经设置好了,但它们却被切掉了而不是缩小了。参见http://www.rjt.org.uk/home/testlocation1
我正在使用[jj-ngg-jquery-cycle html_id = \“ about-cycle-lite \” gallery = \“ 7 \” width = \“ 400 \” height = \“ 600 \” fit = \“ 0 \” center = \“ 1 \”]在Wordpress中。
我怀疑问题出在以下部分,但不确定如何解决。
$slides.each(function() {
var $el = $(this);
this.cycleH = (opts.fit && opts.height) ? opts.height : $el.height();
this.cycleW = (opts.fit && opts.width) ? opts.width : $el.width();
});
请提出建议。
解决方法
您的示例页面有一个例外:
jQuery(\"div#about-cycle-lite\").jjcycle is not a function
我创建了一个工作正常的jsFiddle,但是在您的示例中,所有图像的大小均相同,没有更高的图像。