html Falso Mansonry
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html Falso Mansonry相关的知识,希望对你有一定的参考价值。
<style>
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
/* The Masonry Container */
.masonry {
margin: 1.5em auto;
max-width: 768px;
column-gap: 1.5em;
}
/* The Masonry Brick */
.item {
background: #fff;
padding: 1em;
margin: 0 0 1.5em;
}
/* Masonry on large screens */
@media only screen and (min-width: 1024px) {
.masonry {
column-count: 4;
}
}
/* Masonry on medium-sized screens */
@media only screen and (max-width: 1023px) and (min-width: 768px) {
.masonry {
column-count: 3;
}
}
/* Masonry on small screens */
@media only screen and (max-width: 767px) and (min-width: 540px) {
.masonry {
column-count: 2;
}
}
</style>
<div class="masonry">
<div class="item">Lorem ipsum dolor sit amet, consectetur adipisicing elit.</div>
<div class="item">...</div>
...
...
<div class="item">...</div>
</div>
以上是关于html Falso Mansonry的主要内容,如果未能解决你的问题,请参考以下文章
一天学会HTML 基础
Html.Partial 与 Html.RenderPartial 和 Html.Action 与 Html.RenderAction
html Html模板/ Html Boilerplate |标签HTML
html里怎么引用一个html的头部
html5与传统html区别
html4和html5的区别