问答详情
源自:3-5 滚动图片广告

为什么代码一样,可是不能实现效果

       <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">

          <ol class="carousel-indicators">

            <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>

            <li data-target="#carousel-example-generic" data-slide-to="1"></li>

          </ol>

          <div class="carousel-inner" role="listbox">

            <div class="item active">

              <img src="images/header-bg.jpg">

              <div class="carousel-caption"></div>

            </div>

            <div class="item active">

              <img src="images/header-bg.jpg">

              <div class="carousel-caption"></div>

            </div>

          </div>

          <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="pre">

            <span class="glyphicon glyphicon-chevron-left"></span>

            <span class="sr-only">pre</span>

          </a>

          <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">

            <span class="glyphicon glyphicon-chevron-right"></span>

            <span class="sr-only">next</span>

          </a>

          

        </div>


提问者:廖凝璇4033382 2016-12-03 12:40

个回答

  • 慕莱坞8299253
    2017-06-01 14:41:23

    为什么图片不居中?还有为啥不是轮播了?是上下排列?

  • qq_野火燎原_0
    2016-12-03 15:47:51

    http://img.mukewang.com/5842788c0001eb1706700542.jpg请看上图

  • 好久不见4014797
    2016-12-03 15:47:31

    http://img.mukewang.com/5842787c00018af307880609.jpg

    active多余了,去掉就可以了