简介
在本实验中,我们将探索使用 CSS 进行网格居中的概念。你将学习如何使用 grid
布局在父元素内水平和垂直居中一个子元素。在本实验结束时,你将对如何使用 justify-content
和 align-items
属性来创建完美居中的布局有深入的理解。
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
css(("CSS")) -.-> css/BasicConceptsGroup(["Basic Concepts"])
css(("CSS")) -.-> css/CoreLayoutGroup(["Core Layout"])
css/BasicConceptsGroup -.-> css/selectors("Selectors")
css/CoreLayoutGroup -.-> css/width_and_height("Width and Height")
css/CoreLayoutGroup -.-> css/display_property("Display Property")
subgraph Lab Skills
css/selectors -.-> lab-35205{{"掌握居中网格布局"}}
css/width_and_height -.-> lab-35205{{"掌握居中网格布局"}}
css/display_property -.-> lab-35205{{"掌握居中网格布局"}}
end