.block {}删除inline-block的。 add -webkit-column-count:3;/* Chrome,Safari,Opera * /用于Chrome支持专线。然后为所有div设置相等的高度。 (或)使用display flex。
.container {
-webkit-column-count: 3; /* Chrome, Safari, Opera */
-moz-column-count: 3; /* Firefox */
column-count: 3;
-webkit-column-gap:1em;
-moz-column-gap:1em;
column-gap:1em;
}
.block {
width: 100%;
border: 1px solid;
text-align: justify;
margin-bottom: 5px;
}
<div class="container">
<div class="block">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.</div>
<div class="block">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.</div>
<div class="block">It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.</div>
</div>
这不是布局改变后'列count'冗余? –
确实@IlyaStreltsyn – Stuart