jQuery Resize Plugin适用于

我在这里使用 jQuery resize插件插件 ,它在图像上应该工作。

但我正试图将它应用到画廊Galleriffic

问题是主图像被包装在 ,当我向标签添加一个类时,resize不起作用。

有什么建议?

这是我的标记:

 
  • Title #0
  • Title #1
    Any html can be placed here ...
  • 这是脚本:

      $(function() { $( ".resize1" ).aeImageResize({ height: 70, width: 70 }); $( ".resize2" ).aeImageResize({ height: 10, width: 10 }); });  

    resize脚本是完美的,但我需要它来实现

    PD我一般都是jQuery和脚本编写者。

    更新:这是截图如何在浏览器中显示: 代码的屏幕截图

    这是来自galleriffic.js文件的一小部分

     var newSlide = this.$imageContainer .append(' ') .find('span.current').css('opacity', '0'); newSlide.find('a') .append(imageData.image) .click(function(e) { gallery.clickHandler(e, this); }); 

    它广告推进链接类。

    问题是:如何在高级类容器中向图像添加类? 我希望我已经正确地表达了自己。

    谢谢,

    选择当前显示的图像可以像这样实现(在给定时间幻灯片中只有一个图像):

     $("div#slideshow img") 

    但是为了更改图库“主”图像的大小,您还需要为以下元素设置宽度和高度:

     $("div#slideshow a.advance-link") // and also the parent element of $("div#slideshow") which I can't see in the screenshot you attached. 

    将“resize”function添加到构建库的元素不会影响库图像。