我对这个响应性的东西太过新了.我正在尝试使用新bootstrap 3中的旋转木马,由于某种原因,图像没有填充旋转木马的宽度.所有图像都具有相同的确切尺寸(1000×395),无论我做什么,它都不会一直填充.非常感谢任何和所有帮助!这是我正在使用的代码和截图:
<div class="row"> <div class="col-md-12"> <div id="carousel" class="carousel slide"> <ol class="carousel-indicators"> <li data-target="#carousel" data-slide-to="0" class="active"></li> <li data-target="#carousel" data-slide-to="1"></li> <li data-target="#carousel" data-slide-to="2"></li> <li data-target="#carousel" data-slide-to="3"></li> <li data-target="#carousel" data-slide-to="4"></li> <li data-target="#carousel" data-slide-to="5"></li> <li data-target="#carousel" data-slide-to="6"></li> <li data-target="#carousel" data-slide-to="7"></li> <li data-target="#carousel" data-slide-to="8"></li> <li data-target="#carousel" data-slide-to="9"></li> </ol> <div class="carousel-inner"> <div class="item active"> <img src="/images/temp/1.jpg" class="img-responsive"> </div> <div class="item"> <img src="/images/temp/2.jpg" class="img-responsive"> </div> <div class="item"> <img src="/images/temp/3.jpg" class="img-responsive"> </div> <div class="item"> <img src="/images/temp/4.jpg" class="img-responsive"> </div> <div class="item"> <img src="/images/temp/5.jpg" class="img-responsive"> </div> <div class="item"> <img src="/images/temp/6.jpg" class="img-responsive"> </div> <div class="item"> <img src="/images/temp/7.jpg" class="img-responsive"> </div> <div class="item"> <img src="/images/temp/8.jpg" class="img-responsive"> </div> <div class="item"> <img src="/images/temp/9.jpg" class="img-responsive"> </div> <div class="item"> <img src="/images/temp/10.jpg" class="img-responsive"> </div> </div> <a class="left carousel-control" href="#carousel" data-slide="prev"> <span class="icon-prev"></span> </a> <a class="right carousel-control" href="#carousel" data-slide="next"> <span class="icon-next"></span> </a> </div> </div> <!-- /col-md-12 --> </div> <!-- /row -->
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。