1
我要展示我的照片有问题,在这里是如何看起来像:自举图片显示
这里是我怎么想它是:
一切图片应该在他的专栏的图片下。下面是代码:
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<div class="row">
<div class="col-md-3">
<img src="http://placehold.it/1080x1080" class="img-responsive" style="margin-bottom:25px;">
</div>
<div class="col-md-3">
<img src="http://placehold.it/1080x1350" class="img-responsive" style="margin-bottom:25px;">
</div>
<div class="col-md-3">
<img src="http://placehold.it/566x1080" class="img-responsive" style="margin-bottom:25px;">
</div>
<div class="col-md-3">
<img src="http://placehold.it/1080x1080" class="img-responsive" style="margin-bottom:25px;">
</div>
<div class="col-md-3">
<img src="http://placehold.it/1080x1080" class="img-responsive" style="margin-bottom:25px;">
</div>
<div class="col-md-3">
<img src="http://placehold.it/1080x1350" class="img-responsive" style="margin-bottom:25px;">
</div>
<div class="col-md-3">
<img src="http://placehold.it/566x1080" class="img-responsive" style="margin-bottom:25px;">
</div>
<div class="col-md-3">
<img src="http://placehold.it/1080x1080" class="img-responsive" style="margin-bottom:25px;">
</div>
</div>
您需要使用其中一种技巧。使用CSS,您可以创建列并制作像http://w3bits.com/css-masonry/的布局,或者您可以使用像Masonry这样的js库https://masonry.desandro.com/ –