我想創建這種類型的結構與圖像。我使用bootstrap,是否可以使用bootstrap創建此類佈局,如果不是那麼如何?多個響應圖像適合與單個div與CSS
這裏是示例代碼:
.side_padding { padding-left: 2.5%; padding-right: 2.5%; }
.img_holder { object-fit: fill; width: 90%; }
<div class="selection">
<div class="container">
<div class="row side_padding">
<div class="col-sm-5">
<div class="img_holder banner"><img src="images/img1.jpg" class="img-responsive" alt=""/></div>
<div class="img_holder banner"><img src="images/img2.jpg" class="img-responsive" alt=""/></div>
</div>
<div class="col-sm-3 center-block">
<div class="img_holder banner"><img src="images/img3.jpg" class="img-responsive" alt=""/></div>
<div class="img_holder banner"><img src="images/img4.jpg" class="img-responsive" alt=""/></div>
</div>
<div class="col-sm-4">
<div class="img_holder banner"><img src="images/img5.jpg" class="img-responsive" alt=""/></div>
<div class="img_holder banner"><img src="images/img6.jpg" class="img-responsive" alt=""/></div>
<div class="img_holder banner"><img src="images/img7.jpg" class="img-responsive" alt=""/></div>
</div>
</div>
</div>
</div>
究竟是什麼問題?你已經創建了佈局 –