我需要你的帮助。
我是两个父母,
<div class="container-fluid" >
<div class="row-fluid" id="id">
在这些div中我放了一个由ajax调用创建的div。
我创建了一个div,然后填充数据。 div是:
<div class="col-sm-3 col-md-5 space">
<h2 style="color:#900000">###</h2>
<p class="lead">###
<p>
<p style="text-align: right"><i class="fa fa-clock-o"></i>12/5/24</p>
<div class="thumbnail">
<img src="">
</div>
<div class="caption">
<p>Differetn lenght of data -<<< PROBLEM IS HERE
text.</p>
<a href=download="sss" class="padd">Allegato: ssss'</a>
<br>
</div>
</div>
ajax调用make 5 div 其中有不同的长度。
答案 0 :(得分:0)
<强> HTML 强>
<div class="container masonry">
<div class="block masonry-brick medium"></div>
<div class="block masonry-brick medium"></div>
<div class="block masonry-brick large"></div>
<div class="block masonry-brick medium"></div>
<div class="block masonry-brick medium"></div>
<div class="block masonry-brick small"></div>
<div class="block masonry-brick medium"></div>
<div class="block masonry-brick small"></div>
<div class="block masonry-brick small"></div>
<div class="block masonry-brick medium"></div>
<div class="block masonry-brick large"></div>
<div class="block masonry-brick medium"></div>
<div class="block masonry-brick medium"></div>
<div class="block masonry-brick large"></div>
<div class="block masonry-brick medium"></div>
<div class="block masonry-brick medium"></div>
<div class="block masonry-brick small"></div>
<div class="block masonry-brick medium"></div>
<div class="block masonry-brick small"></div>
<div class="block masonry-brick small"></div>
<div class="block masonry-brick medium"></div>
<div class="block masonry-brick large"></div>
</div>
<强> JS 强>
$('.container').masonry({
// options
itemSelector : '.block',
});