html - 幻灯片 Bootstrap 轮播之间的空白

标签 html css twitter-bootstrap

我正在为网站主页上的 slider 使用 Bootstrap 轮播。

当旋转木马自动滑动时没有问题,但是当我点击下一个和上一个箭头时,幻灯片之间会出现 ±140 像素宽的空白区域。

我已经检查了 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 - 单击南非及其主要轮播/ slider

最佳答案

将 carousel-inner overflow 设置为可见。

.carousel-inner{overflow:visible} 

关于html - 幻灯片 Bootstrap 轮播之间的空白,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27265586/

相关文章:

html - 开始制作 360 度网站的最佳方式

html - 使用 Symfony2.7 和 Bootstrap 在 IE 中出现页脚错误

c# - 禁用 Javascript 时在 ASP 中隐藏占位符

c# - Lync 2013 即时消息字体和颜色

html - 嵌套在 <p> 标签中时如何更改图像大小

jquery - 将导航栏定位在视口(viewport)的底部,它也始终保留在 div 的底部

ruby - Grunt - bundler : failed to load command: scss-lint

css - GWT ListBox 在不同浏览器中呈现不同

HTML5 视频录制并自动上传到服务器

javascript - 下划线模板和其他html文件如何绑定(bind)?