@media (min-width: 1200px) {
.post-listview:nth-child(4n+1) {
clear: left;
}
}
@media (max-width: 1199px) {
.post-listview:nth-child(2n+1) {
clear: left;
}
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" />
<div class="container">
<div class="postrow row">
<article class="post-listview col-lg-3 col-xs-6">
<div class="articleinner">
<div class="thumbandtitle">
<img src="http://placehold.it/350x150" class="img-responsive post-thumbnail">
<div class="post-overlay">
<div class="post-overlay-text">
<h2><a href="#">ONE</a></h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen
book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchangeLorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's</p>
</div>
</div>
</div>
<p class="post-info">
<i class="post-icon post-date-icon fa fa-calendar"></i>time
<span class="separator"></span>
<span class="tagspan"><i class="post-icon post-author-icon fa fa-user"></i><a href="x">authorname</a></span>
<span class="separator"></span>
<span class='tagspan'><i class="post-icon post-tags-icon fa fa-tags"></i>tag1, tag2, tag3...</span>
</p>
</div>
</article>
<article class="post-listview col-lg-3 col-xs-6">
<div class="articleinner">
<div class="thumbandtitle">
<img src="http://placehold.it/350x150" class="img-responsive post-thumbnail">
<div class="post-overlay">
<div class="post-overlay-text">
<h2><a href="#">TWO</a></h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen
book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchange Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's
standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially
unchange
</p>
</div>
</div>
</div>
<p class="post-info">
<i class="post-icon post-date-icon fa fa-calendar"></i>time
<span class="separator"></span>
<span class="tagspan"><i class="post-icon post-author-icon fa fa-user"></i><a href="x">authorname</a></span>
<span class="separator"></span>
<span class='tagspan'><i class="post-icon post-tags-icon fa fa-tags"></i>tag1, tag2, tag3...</span>
</p>
</div>
</article>
<article class="post-listview col-lg-3 col-xs-6">
<div class="articleinner">
<div class="thumbandtitle">
<img src="http://placehold.it/350x150" class="img-responsive post-thumbnail">
<div class="post-overlay">
<div class="post-overlay-text">
<h2><a href="#">THREE</a></h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into
electronic typesetting, remaining essentially unchange.</p>
</div>
</div>
</div>
<p class="post-info">
<i class="post-icon post-date-icon fa fa-calendar"></i>time
<span class="separator"></span>
<span class="tagspan"><i class="post-icon post-author-icon fa fa-user"></i><a href="x">authorname</a></span>
<span class="separator"></span>
<span class='tagspan'><i class="post-icon post-tags-icon fa fa-tags"></i>tag1, tag2, tag3...</span>
</p>
</div>
</article>
<article class="post-listview col-lg-3 col-xs-6">
<div class="articleinner">
<div class="thumbandtitle">
<img src="http://placehold.it/350x150" class="img-responsive post-thumbnail">
<div class="post-overlay">
<div class="post-overlay-text">
<h2><a href="#">FOUR</a></h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen
book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchange setting industry. Lorem Ipsum has be</p>
</div>
</div>
</div>
<p class="post-info">
<i class="post-icon post-date-icon fa fa-calendar"></i>time
<span class="separator"></span>
<span class="tagspan"><i class="post-icon post-author-icon fa fa-user"></i><a href="x">authorname</a></span>
<span class="separator"></span>
<span class='tagspan'><i class="post-icon post-tags-icon fa fa-tags"></i>tag1, tag2, tag3...</span>
</p>
</div>
</article>
<article class="post-listview col-lg-3 col-xs-6">
<div class="articleinner">
<div class="thumbandtitle">
<img src="http://placehold.it/350x150" class="img-responsive post-thumbnail">
<div class="post-overlay">
<div class="post-overlay-text">
<h2><a href="#">FIVE</a></h2>
<p>xyz</p>
</div>
</div>
</div>
<p class="post-info">
<i class="post-icon post-date-icon fa fa-calendar"></i>time
<span class="separator"></span>
<span class="tagspan"><i class="post-icon post-author-icon fa fa-user"></i><a href="x">authorname</a></span>
<span class="separator"></span>
<span class='tagspan'><i class="post-icon post-tags-icon fa fa-tags"></i>tag1, tag2, tag3...</span>
</p>
</div>
</article>
<article class="post-listview col-lg-3 col-xs-6">
<div class="articleinner">
<div class="thumbandtitle">
<img src="http://placehold.it/350x150" class="img-responsive post-thumbnail">
<div class="post-overlay">
<div class="post-overlay-text">
<h2><a href="#">SIX</a></h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen
book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchange Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's
</p>
</div>
</div>
</div>
<p class="post-info">
<i class="post-icon post-date-icon fa fa-calendar"></i>time
<span class="separator"></span>
<span class="tagspan"><i class="post-icon post-author-icon fa fa-user"></i><a href="x">authorname</a></span>
<span class="separator"></span>
<span class='tagspan'><i class="post-icon post-tags-icon fa fa-tags"></i>tag1, tag2, tag3...</span>
</p>
</div>
</article>
<article class="post-listview col-lg-3 col-xs-6">
<div class="articleinner">
<div class="thumbandtitle">
<img src="http://placehold.it/350x150" class="img-responsive post-thumbnail">
<div class="post-overlay">
<div class="post-overlay-text">
<h2><a href="#">SEVEN</a></h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen
</p>
</div>
</div>
</div>
<p class="post-info">
<i class="post-icon post-date-icon fa fa-calendar"></i>time
<span class="separator"></span>
<span class="tagspan"><i class="post-icon post-author-icon fa fa-user"></i><a href="x">authorname</a></span>
<span class="separator"></span>
<span class='tagspan'><i class="post-icon post-tags-icon fa fa-tags"></i>tag1, tag2, tag3...</span>
</p>
</div>
</article>
<article class="post-listview col-lg-3 col-xs-6">
<div class="articleinner">
<div class="thumbandtitle">
<img src="http://placehold.it/350x150" class="img-responsive post-thumbnail">
<div class="post-overlay">
<div class="post-overlay-text">
<h2><a href="#">EIGHT</a></h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen
book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchange Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's
</p>
</div>
</div>
</div>
<p class="post-info">
<i class="post-icon post-date-icon fa fa-calendar"></i>time
<span class="separator"></span>
<span class="tagspan"><i class="post-icon post-author-icon fa fa-user"></i><a href="x">authorname</a></span>
<span class="separator"></span>
<span class='tagspan'><i class="post-icon post-tags-icon fa fa-tags"></i>tag1, tag2, tag3...</span>
</p>
</div>
</article>
<article class="post-listview col-lg-3 col-xs-6">
<div class="articleinner">
<div class="thumbandtitle">
<img src="http://placehold.it/350x150" class="img-responsive post-thumbnail">
<div class="post-overlay">
<div class="post-overlay-text">
<h2><a href="#">NINE</a></h2>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown
</p>
</div>
</div>
</div>
<p class="post-info">
<i class="post-icon post-date-icon fa fa-calendar"></i>time
<span class="separator"></span>
<span class="tagspan"><i class="post-icon post-author-icon fa fa-user"></i><a href="x">authorname</a></span>
<span class="separator"></span>
<span class='tagspan'><i class="post-icon post-tags-icon fa fa-tags"></i>tag1, tag2, tag3...</span>
</p>
</div>
</article>
</div>
</div>
[在自舉的對齊網格項目的CSS指導(的可能的複製http://stackoverflow.com/questions/34840873/css-guidance-on-aligning -grid-items-in-boostrap) – vanburen
如果您花時間閱讀複製中問題的接受答案,您會發現它與以任何方式設置最小高度無關。 SO上有無數與您的問題直接相關的答案(清楚列的浮動),所以您應該花時間搜索並閱讀它們。 – vanburen
接受的答案建議使用'clear:float'基於特定的屏幕寬度,這對我來說不是一個可行的選擇,因爲a)它的手動和屏幕尺寸可以大不相同,並且b)在我的'上添加'clear:float' '標籤仍然沒有消除差距,只是將其從左向右移動。無論如何,感謝您的幫助非常大。 –
TheLearner