[英]How to make gallery full width?
我正在嘗試以任何分辨率使全幅圖像畫廊。
奇怪的是,只有當我單擊瀏覽器窗口上的最大化按鈕按鈕時,圖庫才會全屏顯示。 到目前為止,我還無法弄清楚這個問題。
這是演示鏈接〜
嘗試這個:
找到boxlayout.js
,將其打開並找到第54-57
行。 它看起來應該像這樣:
if( !$section.data( 'open' ) ) {
$section.data( 'open', true ).addClass( 'bl-expand bl-expand-top' );
$el.addClass( 'bl-expand-item' );
}
最后,添加:
setTimeout(
function() {
$( window ).trigger( 'resize' );
},
500
);
所以它應該看起來像:
if( !$section.data( 'open' ) ) {
$section.data( 'open', true ).addClass( 'bl-expand bl-expand-top' );
$el.addClass( 'bl-expand-item' );
}
setTimeout(
function() {
$( window ).trigger( 'resize' );
},
500
);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.