bootstrap传送带图片靠左

畅哥不会唱歌 发布于 2017/01/05 16:25
阅读 130
收藏 0
bootstrap做的传送带图片总是靠屏幕左边,没有居中显示

以下是问题补充:

@畅哥不会唱歌:下面是代码。div设置align:center也不行 <div id="homepage-feature" class="carousel slide" data-ride="carousel" > <ol class="carousel-indicators"> <li data-target="#homepage-feature" data-slide-to="0" class="active"></li> <li data-target="#hemepage-feature" data-slide-to="1"></li> <li data-target="#hemepage-feature" data-slide-to="2"></li> </ol> <div class="carousel-inner" role="listbox"> <div class="item active"> <img src="img/img_bg_1.jpg" alt="slide1"> </div> <div class="item"> <img src="img/img_bg_2.jpg" alt="slide2"> </div> <div class="item"> <img src="img/img_bg_3.jpg" alt="slide3"> </div> </div> <a class="left carousel-control" href="#homepage-feature" data-slide="prev"> <span class="glyphicon glyphicon-chevron-left"></span> </a> <a class="right carousel-control" href="#homepage-feature" data-slide="next"> <span class="glyphicon glyphicon-chevron-right"></span> </a> </div> (2017/01/05 16:27)
加载中
返回顶部
顶部