响应容器目前,我有当窗口被重新调整大小,稀土尺寸图像的滑块。图像重新调整大小,但是当重新调整尺寸时,它会显示滑块容器的棕色背景。我希望能够将容器与图像一起重新调整大小,以便棕色背景根本不会显示出来。为响应图像
截至目前,为滑块,该容器具有一组高度。我设置高度是因为没有高度,当幻灯片正在转换时,容器跳转到高度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%; }