HTML
<div class="container-fluid no-padding">
<div id="mainSlide" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#mainSlide" data-slide-to="0"></li>
<li data-target="#mainSlide" data-slide-to="1"></li>
<li data-target="#mainSlide" data-slide-to="2"></li>
</ol>
<div class="carousel-inner img-responsive">
<div class="item active">
<img src="1.jpg" alt="nature1">
</div>
<div class="item">
<img src="2.jpg" alt="nature2">
</div>
<div class="item">
<img src="3.jpg" alt="nature3">
</div>
<a class="left carousel-control" href="#mainSlide" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#mainSlide" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</div>
CSS
.no-padding{
padding: 0px;
}
.item {
height: 100%;
width: 100%;
}
问题
在横幅中可以看到它在大屏幕上显示异常,如何解决。在小屏幕(<= 1366px)上横幅可以正常工作。如何解决此问题,请先感谢您的帮助。>
答案 0 :(得分:0)