jQuery调整插件大小应用于<;a>;
我正在使用jQuery调整大小插件,它在图像上的工作方式应该是一样的 但我想把它应用到画廊里 问题是主图像被包装在jQuery调整插件大小应用于<;a>;,jquery,image,jquery-plugins,resize,gallery,Jquery,Image,Jquery Plugins,Resize,Gallery,我正在使用jQuery调整大小插件,它在图像上的工作方式应该是一样的 但我想把它应用到画廊里 问题是主图像被包装在 任何html都可以放在这里。。。 以下是脚本: <script> $(function() { $( ".resize1" ).aeImageResize({ height: 70, width: 70 }); $( ".resize2" ).aeImageResize({ height: 10, width: 10 }); }); </s
任何html都可以放在这里。。。
以下是脚本:
<script>
$(function() {
$( ".resize1" ).aeImageResize({ height: 70, width: 70 });
$( ".resize2" ).aeImageResize({ height: 10, width: 10 });
});
</script>
$(函数(){
$(“.resize1”).aeImageResize({高度:70,宽度:70});
$(“.resize2”).aeImageResize({高度:10,宽度:10});
});
调整大小脚本非常完美,但我需要它在上运行)
.find('span.current').css('opacity','0');
newSlide.find('a')
.append(imageData.image)
。单击(功能(e){
gallery.clickHandler(e,this);
});
它的广告高级链接类
问题是:如何将类添加到ImagePrevanceClass容器中?我希望我的表达是正确的
谢谢,选择当前显示的图像可以这样实现(在给定的时间幻灯片中只有一个图像): 但要更改画廊“主”图像的大小,还需要为以下元素设置宽度和高度:
$("div#slideshow a.advance-link")
// and also the parent element of $("div#slideshow") which I can't see in the screenshot you attached.
将“调整大小”功能添加到构建库所用的元素不会影响库图像。您可以发布您尝试过的内容吗?
var newSlide = this.$imageContainer
.append('<span class="image-wrapper current"><a class="advance-link" rel="history" href="#'+this.data[nextIndex].hash+'" title="'+imageData.title+'"> </a></span>')
.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.