We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
使用简写属性 columns 书写
兼容性: https://www.caniuse.com/#search=columns
<main class="masonry"> <section class="item>1</section> <section class="item>2</section> <section class="item>3</section> <section class="item>4</section> <!-- more items --> </main>
.masonry{ column-count: 3; /* 列数 */ } .item{ break-inside: avoid; /* 元素不能中断 */ }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
使用CSS的多列布局
使用简写属性 columns 书写
-声明 column-width:12em 等效于 columns:12em
兼容性: https://www.caniuse.com/#search=columns
参考
The text was updated successfully, but these errors were encountered: