创建CSSGrid布局需先将容器设为display:grid,再用grid-template-columns/rows定义行列结构,通过gap设置间距,并利用grid-column/row或grid-...