[css(https://developer.mozilla.org/en-us/docs/web/css) property is a [shorthand](https://developer.mozilla.org/en-us/docs/web/css/shorthand_properties) property that sets all of the explicit and implicit grid properties in a single declaration.using ```grid``` you specify one axis using [grid-template-rows](https://developer.mozilla.org/en-us/docs/web/css/grid-template-rows) or [grid-template-columns](https://developer.mozilla.org/en-us/docs/web/css/grid-template-columns), you then specify how content should auto-repeat in the other axis using the implicit grid properties: [grid-auto-rows](https://developer.mozilla.org/en-us/docs/web/css/grid-auto-rows), [grid-auto-columns](https://developer.mozilla.org/en-us/docs/web/css/grid-auto-columns), and [grid-auto-flow](https://developer.mozilla.org/en-us/docs/web/css/grid-auto-flow).**try it**## css demo: grid````grid: auto-flow / 1fr 1fr 1fr;````
登录后复制
网格:自动流动密集/40px 40px 1fr;
登录后复制
网格:重复(3, 80px) / 自动流动;
登录后复制
以上就是CSS 网格的详细内容,更多请关注【创想鸟】其它相关文章!
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至253000106@qq.com举报,一经查实,本站将立刻删除。
发布者:PHP中文网,转转请注明出处:https://www.chuangxiangniao.com/p/2850268.html