Twitter bootstrap Jumbotron图像滑块

Twitter bootstrap Jumbotron图像滑块,twitter-bootstrap,Twitter Bootstrap,回族朋友, 我有我的jumbotron和完整的背景图像放在里面。我在想,是否有可能使它不仅是一个静态图像,而且使一些幻灯片包含5张图片,每5秒可以幻灯片?可能吗?它如何实现我提到的?我目前的执行情况如下: html: 在实现顶部滑块后,第二个galery滑块出现问题: <!-- Gallery --> <div class="container"> <section> <div class="page-he

回族朋友, 我有我的jumbotron和完整的背景图像放在里面。我在想,是否有可能使它不仅是一个静态图像,而且使一些幻灯片包含5张图片,每5秒可以幻灯片?可能吗?它如何实现我提到的?我目前的执行情况如下:

html:

在实现顶部滑块后,第二个galery滑块出现问题:

<!-- Gallery -->
    <div class="container">
        <section>
            <div class="page-header" id="gallery">
                <h2>Kilka wykonanych projektów.<small> Couple of already realased projects.</small></h2>
            </div>

            <div class="carousel slide" id="screenshot-carousel" data-ride="carousel">
                <ol class="carousel-indicators">
                    <li data-target="#screenshot-carousel" data-slide-to="0" class="active"></li>
                    <li data-target="#screenshot-carousel" data-slide-to="1"></li>
                    <li data-target="#screenshot-carousel" data-slide-to="2"></li>
                    <li data-target="#screenshot-carousel" data-slide-to="3"></li>
                </ol>
                <div class="carousel-inner">
                    <div class="item active">
                        <img src="highway.jpg" alt="Text of the image">
                        <div class="carousel-caption">
                            <h3>Highway heading</h3>
                            <p>This is the caption</p>
                        </div>
                    </div>
                    <div class="item">
                        <img src="river.jpg" alt="Text of the image">
                        <div class="carousel-caption">
                            <h3>River heading</h3>
                            <p>This is the caption</p>
                        </div>
                    </div>
                    <div class="item">
                        <img src="street.jpg" alt="Text of the image">
                        <div class="carousel-caption">
                            <h3>Street heading</h3>
                            <p>This is the caption</p>
                        </div>
                    </div>
                    <div class="item">
                        <img src="painting.jpg" alt="Text of the image">
                        <div class="carousel-caption">
                            <h3>Painting heading</h3>
                            <p>This is the caption</p>
                        </div>
                    </div>

                </div><!-- End Carousel inner -->
                <a href="#screenshot-carousel" class="left carousel-control" data-slide="prev">
                    <span class="glyphicon glyphicon-chevron-left"></span>
                </a>
                <a href="#screenshot-carousel" class="right carousel-control" data-slide="next">
                    <span class="glyphicon glyphicon-chevron-right"></span>
                </a>
            </div><!-- End Carousel -->

        </section>
    </div>

Kilka wykonanych项目。两个已经实现的项目。
  • 公路掘进 这是标题

    河道走向 这是标题

    街道走向 这是标题

    绘画标题 这是标题

    这是图像更改后的外观:


    有关如何在旋转木马中自定义jumbotron的演示,请参见以下引导代码:


    基本要点是将jumbotron放置在传送带容器的div内,这样您就可以像在传送带中一样循环使用jumbotron的属性。

    有关带jumbotron的传送带的参考,您可以检查!。如果你检查它,它有可读的代码


    整个滑块不是全宽的您已将其放置在容器分区内。只需关闭容器分区并在jumbotron内重新打开它(这是可选的。您也可以在没有容器的情况下使用它。或者使用容器流体代替容器覆盖整个宽度)

    确定其工作,但当我想在网页上更多地使用它时,它不会像静态的那样工作。我可以点击箭头,但图像并没有改变,整个滑块也不是全宽的,怎么了?
    .jumbotron {
        position: relative;
        background: #000 url('35.jpg') center center no-repeat;
        width: 100%;
        background-size: cover;
        overflow: hidden;
        height: 370px;
    }
    
    <!-- Gallery -->
        <div class="container">
            <section>
                <div class="page-header" id="gallery">
                    <h2>Kilka wykonanych projektów.<small> Couple of already realased projects.</small></h2>
                </div>
    
                <div class="carousel slide" id="screenshot-carousel" data-ride="carousel">
                    <ol class="carousel-indicators">
                        <li data-target="#screenshot-carousel" data-slide-to="0" class="active"></li>
                        <li data-target="#screenshot-carousel" data-slide-to="1"></li>
                        <li data-target="#screenshot-carousel" data-slide-to="2"></li>
                        <li data-target="#screenshot-carousel" data-slide-to="3"></li>
                    </ol>
                    <div class="carousel-inner">
                        <div class="item active">
                            <img src="highway.jpg" alt="Text of the image">
                            <div class="carousel-caption">
                                <h3>Highway heading</h3>
                                <p>This is the caption</p>
                            </div>
                        </div>
                        <div class="item">
                            <img src="river.jpg" alt="Text of the image">
                            <div class="carousel-caption">
                                <h3>River heading</h3>
                                <p>This is the caption</p>
                            </div>
                        </div>
                        <div class="item">
                            <img src="street.jpg" alt="Text of the image">
                            <div class="carousel-caption">
                                <h3>Street heading</h3>
                                <p>This is the caption</p>
                            </div>
                        </div>
                        <div class="item">
                            <img src="painting.jpg" alt="Text of the image">
                            <div class="carousel-caption">
                                <h3>Painting heading</h3>
                                <p>This is the caption</p>
                            </div>
                        </div>
    
                    </div><!-- End Carousel inner -->
                    <a href="#screenshot-carousel" class="left carousel-control" data-slide="prev">
                        <span class="glyphicon glyphicon-chevron-left"></span>
                    </a>
                    <a href="#screenshot-carousel" class="right carousel-control" data-slide="next">
                        <span class="glyphicon glyphicon-chevron-right"></span>
                    </a>
                </div><!-- End Carousel -->
    
            </section>
        </div>