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