
[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;
笔灵降AI
论文降AI神器,适配知网及维普!一键降至安全线,100%保留原文格式;无口语化问题,文风更学术,降后字数控制最佳!
62 查看详情
网格:重复(3, 80px) / 自动流动;
以上就是CSS 网格的详细内容,更多请关注创想鸟其它相关文章!
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 chuangxiangniao@163.com 举报,一经查实,本站将立刻删除。
发布者:程序猿,转转请注明出处:https://www.chuangxiangniao.com/p/1166778.html
微信扫一扫
支付宝扫一扫