響應容器目前,我有當窗口被重新調整大小,稀土尺寸圖像的滑塊。圖像重新調整大小,但是當重新調整尺寸時,它會顯示滑塊容器的棕色背景。我希望能夠將容器與圖像一起重新調整大小,以便棕色背景根本不會顯示出來。爲響應圖像
截至目前,爲滑塊,該容器具有一組高度。我設置高度是因爲沒有高度,當幻燈片正在轉換時,容器跳轉到高度0,第二次使佈局類似於毛刺和移動。如果沒有滑塊容器的設置高度,東西會重新調整大小,但會發生布局問題。
我怎麼能沒有佈局毛刺及再大小,而不顯示背景顏色滑塊容器?
這裏是鏈接到網站,滑塊,可以發現:http://lab.stickywebz.com/plantsource/
這裏是我使用滑塊的JavaScript:
$(document).ready(function(){
ShowPostDiv(0);
});
function ShowPostDiv(divIndex)
{
$(".herocontent").hide();
if(divIndex >= $(".rotate_hide").length)
{
divIndex = 0;
}
var divPostHtml = $(".rotate_hide:eq("+divIndex+")").html();
$(".herocontent").html(divPostHtml);
$(".herocontent").fadeIn(1000).delay(6500).fadeOut(1000);
divIndex++;
setTimeout("ShowPostDiv("+divIndex+")", 8500);
}
$(document).ready(function(){
ShowPost();
});
下面是一些我使用的CSS滑塊面積:
#hero { width: 100%; position: relative; height: 450px; color: #fff; background-color: #bb9a71; overflow: hidden; }
.hero_img { width: 100%; }
.hero_img img { width: 100%; height: 100%; }