0
當窗口變小時,它將在視口的右側創建一個巨大的空白區域。我試圖隱藏在主容器和標題中的溢出,沒有任何改變。當窗口大小變小時不尋常的空間
直播代碼http://jordan.rave5.com/tmptemp/
jQuery代碼
// Control Resize
$(window).load(function() {
var header = $('#header'),
imageGrad = $('.image-grad'),
image = $('.header-img'),
headerBg = $('#header'),
headerSource = $('.header-img'),
wWidth = $(window).width();
function resizeDiv() {
imageGrad.height(image.height());
imageGrad.width(wWidth);
headerBg.css({'background-size': + image.width() + 'px ' + image.height() + 'px'});
$(headerBg).blurjs({
source: headerSource,
radius: 8,
overlay: 'rgba(0,0,0,0.50)'
});
}
resizeDiv();
$(window).resize(function() { resizeDiv(); });
});
謝謝兄弟!非常感激! – WASasquatch 2013-04-27 09:33:00