我正在网站主页上使用引导轮播作为滑块。
当轮播自动滑动时没有问题,但一旦我单击下一个和上一个箭头,幻灯片之间就会出现 ±140px 宽的空白。
我已经检查了 css 并删除了 HTML 中的所有空白,但我一点运气都没有。
轮播 HTML:
<div class="clearfix row slider">
<div class="clearfix carousel slide col-lg-12 col-md-12 col-sm-12 col-xs-12" data-ride="carousel" id="carousel-example-generic">
<div class="carousel-inner">
<div class="clearfix item active" style='background: url("/Content/Images/media/carousel/hero-test.jpg") no-repeat;'>
<div class="clearfix max-width carousel-caption">
<h2>Hello. I'm Lorem. I'm a Slow
Cooker.</h2><span class="clearfix">And I'm quickly
changing the world</span>
<a class='fresco cta' data-fresco-caption="Lorem | How It Works" data-fresco-group='example' href='https://vimeo.com/105705114'>How It Works</a>
</div>
<video autoplay="" class="bgvid" loop="" poster="/Content/Images/default/video-bg.jpg">
<source src="/Content/Images/media/bkvideo/1_Lorem-marquee.mp4" type="video/webm">
<source src="polina.html" type="video/mp4">
</video>
</div>
<div class="clearfix item" style='background: url("/Content/Images/media/carousel/1_marquee-2.jpg ") no-repeat;'>
<div class="clearfix max-width carousel-caption">
<h2>Get to know Lorem.</h2><span class="clearfix">And learn the Lorem Story</span>
<a class="cta" href="/Pages/SarahsStory">Meet Lorem</a>
</div>
</div>
</div>
<a class="left carousel-control" data-slide="prev" href="#carousel-example-generic"><span><img alt=" " src="/Content/Images/default/arrow-slider.svg"></span></a>
<a class="right carousel-control" data-slide="next" href="#carousel-example-generic"><span><img alt=" " src="/Content/Images/default/arrow-slider.svg"></span></a>
</div>
网站链接:http://bit.ly/1BcaEb8 http://bit.ly/1BcaEb8- 单击南非及其主要轮播/滑块
将 carousel-inner 溢出设置为可见。
.carousel-inner{overflow:visible}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)