最佳答案
这可以通过 Bootstrap Grid System
实现。我认为这段代码会对你有所帮助。我已经为整个屏幕完成了它,您可以将它用于屏幕的某些部分。
<div class="row">
<div class="col-md-6">
<p>Some text..</p>
<img src="http://placehold.it/150x80?text=IMAGE" class="img-responsive" style="width:100%" alt="Image">
</div>
<div class="col-md-3">
<p>Some text..</p>
<img src="http://placehold.it/150x80?text=IMAGE" class="img-responsive" style="width:100%" alt="Image">
<p>Some text..</p>
<img src="http://placehold.it/150x80?text=IMAGE" class="img-responsive" style="width:100%" alt="Image">
</div>
<div class="col-md-3">
<p>Some text..</p>
<img src="http://placehold.it/150x80?text=IMAGE" class="img-responsive" style="width:100%" alt="Image">
</div>
</div>
<div class="row">
<div class="col-md-3">
<p>Some text..</p>
<img src="http://placehold.it/150x80?text=IMAGE" class="img-responsive" style="width:100%" alt="Image">
<p>Some text..</p>
<img src="http://placehold.it/150x80?text=IMAGE" class="img-responsive" style="width:100%" alt="Image">
</div>
<div class="col-md-6">
<div class="col-md-6">
<p>Some text..</p>
<img src="http://placehold.it/150x80?text=IMAGE" class="img-responsive" style="width:100%" alt="Image">
</div>
<div class="col-md-6">
<p>Some text..</p>
<img src="http://placehold.it/150x80?text=IMAGE" class="img-responsive" style="width:100%" alt="Image">
</div>
<p>Some text..</p>
<img src="http://placehold.it/150x80?text=IMAGE" class="img-responsive" style="width:100%" alt="Image">
</div>
<div class="col-md-3">
<p>Some text..</p>
<img src="http://placehold.it/150x80?text=IMAGE" class="img-responsive" style="width:100%" alt="Image">
<p>Some text..</p>
<img src="http://placehold.it/150x80?text=IMAGE" class="img-responsive" style="width:100%" alt="Image">
</div>
</div>
参见 this对于您对 Grid System
的澄清,请参阅一些示例 Bootstrap Template .我认为这些会对您有所帮助。
关于html - Bootstrap/网格系统/CSS 解决方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38613642/