2016-10-20 53 views
-1

在此開發網站上工作,http://dev.doubleaevents.com/,並卡在靠近底部的團隊部分。點擊展開作品,但點擊關閉截屏縮略圖

單擊其中一個沙箱圖像時,有關團隊成員的更多信息將在下面展開,重新排列其他沙箱圖像。當您單擊關閉時,原始沙箱圖像被切斷。

我不熟悉JS,但我認爲它是JS需要編輯?我一直在尋找這個文件並不能找出我需要編輯來解決該問題:http://dev.doubleaevents.com/wp-content/plugins/portfolio-gallery/assets/js/view-toggle-up-down.js

回答

0

你的問題是,在這一領域的代碼:

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 

,或者你可以重寫你的函數使用正確的參數。

+1

你真了不起!這工作。謝謝! –