如何保持jumbotron的尺寸固定并放置旋转木马?

时间:2014-09-26 17:42:59

标签: twitter-bootstrap carousel

<div class="container">
<div class="jumbotron">
<div id="myCarousel" class="carousel slide">
    <ol class="carousel-indicators">
        <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
        <li data-target="#myCarousel" data-slide-to="1"></li>
        <li data-target="#myCarousel" data-slide-to="2"></li>
        <li data-target="#myCarousel" data-slide-to="3"></li>
    </ol>
    <div class="carousel-inner">

            <div class="item active">
                <img src="imp/slider/sg-bg1.jpg" alt="tech" class="img-responsive">
            </div>
            <div class="item">
            <img src="imp/slider/sg-bg2.jpg" alt="tech" class="img-responsive">
             </div>
            <div class="item">
            <img src="imp/slider/sg-bg3.jpg" alt="tech" class="img-responsive">
     </div>

    </div>
</div>
</div>

我使用了以下代码,但是jumbotron的大小并不固定,无法在jumbotron上制作过渡效果

0 个答案:

没有答案