你的问题是,在这一领域的代码:
if (jQuery(this).parents('.portelement').hasClass("large")) {
jQuery(this).parents('.portelement').animate({
height: _this.defaultBlockHeight + 20 + 2*param_obj.portfolio_gallery_ht_view0_element_border_width+param_obj.portfolio_gallery_ht_view0_title_font_size
}, 300, function() {
jQuery(this).removeClass('large');
portfolioGalleryIsotope(_this.container,'reLayout');
});
_this.element.removeClass("active");
return false;
}
,而不是设置高度回到240像素,你将它设置为197我使用图像的宽度认为这部分是由于你,在你的功能,这是297
,你可以手动设置高度,通过改变这一行
height: _this.defaultBlockHeight + 20 + 2*param_obj.portfolio_gallery_ht_view0_element_border_width+param_obj.portfolio_gallery_ht_view0_title_font_size
这个
height: 240
,或者你可以重写你的函数使用正确的参数。
你真了不起!这工作。谢谢! –