我正在學習Bootstrap網格系統,所以我做了一些圖像的一排,但是當我降低了屏幕的分辨率時,我的圖像就在容器下面。引導.row走出
<div class="container main" id="second-box">
<h2 class="font-montserrat text-center"> Projects <i class="fa fa-file-code-o"></i>
</h2>
<div>
<div class="row">
<img src= "http://jackson.armylive.dodlive.mil/files/2014/05/StandBy.jpg" class="projects-img img-responsive img-rounded col-md-4">
<img src= "http://jackson.armylive.dodlive.mil/files/2014/05/StandBy.jpg" class="projects-img img-responsive img-rounded col-md-4">
<img src= "http://jackson.armylive.dodlive.mil/files/2014/05/StandBy.jpg" class="projects-img img-responsive img-rounded col-md-4">
<img src= "http://jackson.armylive.dodlive.mil/files/2014/05/StandBy.jpg" class="projects-img img-responsive img-rounded col-md-4">
</div>
</div> </div>
這裏是CSS:
#second-box{
margin: 1px auto;
height: 700px;
}
.main {
background-color: #e0f0e2;
width: 70%;
box-shadow: 0px 0px 5px 0px;
}
.projects-img{
width: 360px;
margin-left: 20px;
margin-bottom: 20px;}
圖片:
你能後所發生的事情的截圖,也許你期待發生什麼? – theatlasroom
是的,等一下 –