「自訂頁面嵌入QDM Blog 時,文章較多長度不夠」

 解決文章區塊長度不足





✎ 重點拆解:


一、設定路徑

二、語法



一、設定路徑


請下列提供的語法 , 貼至後台:版面>自訂JS全站程式碼





二、語法


if($('#idIframe').length){
$('#idIframe').load(function(){
$(this).contents().find("#loadMoreButton .load-more").on('click', function() {
setTimeout(function(){
setIframeHeight(document.getElementById('idIframe'));
}, 300);
});
});
}



注意 /

該語法是設定:點擊「更多文章」按鈕時,重新判斷畫面高度。