CSS 网格

css 网格

[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 网格的详细内容,更多请关注创想鸟其它相关文章!

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 chuangxiangniao@163.com 举报,一经查实,本站将立刻删除。
发布者:程序猿,转转请注明出处:https://www.chuangxiangniao.com/p/1631173.html

赞 (0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
子元素类型如何影响父元素高度?
上一篇 2025年12月24日 13:55:04
块状元素如何影响父元素高度?
下一篇 2025年12月24日 13:55:18

相关推荐

发表回复

登录后才能评论
关注微信