《CSS Grid 轨道指南》
The Field Guide to CSS Grid Lanes

原始链接: https://gridlanes.webkit.org/

自 2017 年 CSS Grid 发布以来,开发者们一直在问:“我该如何制作瀑布流布局?”多年来,唯一的选择是使用 JavaScript——但通常既臃肿又脆弱,效果也不尽如人意。现在,CSS Grid Lanes 在浏览器原生层面解决了这一需求。Grid Lanes 在 CSS 工作组内经历了多年的设计、原型制作和辩论。我们对最终成果感到由衷自豪。只需四行 CSS,无需任何库,无需任何框架。它既快速又稳健。本网站由从一开始就参与其中的团队制作。每一个演示、每一张图表、每一项声明都经过了严谨的准确性审查。这正是 Grid Lanes 的工作原理,直接来自源头。我们希望您能用 Grid Lanes 创造出令人惊叹的作品。它的功能远不止于经典的瀑布流布局。我们迫不及待地想看到您的作品。

Hacker News 最新 | 过往 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 CSS 网格轨道指南 (webkit.org) 7 分,作者:ingve,1 小时前 | 隐藏 | 过往 | 收藏 | 讨论 | 帮助 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文

Ever since CSS Grid shipped in 2017, developers asked “How can I make a Masonry layout?” For years, the only option was to use JavaScript — often heavy, fragile, and not quite right. Now, CSS Grid Lanes solves this need, natively in the browser.

Grid Lanes went through years of design, prototyping, and debate within the CSS Working Group. The result is something we’re genuinely proud of. Four lines of CSS. No library. No framework. It’s fast and robust.

This website was made by the same people who’ve been involved from the beginning. Every demo, every diagram, every claim has been thoroughly reviewed for accuracy. This is exactly how Grid Lanes works, straight from the source.

We hope you create amazing things with Grid Lanes. It does far more than the classic masonry-style layout. We can’t wait to see what you make with it.

联系我们 contact @ memedata.com