Correcting teacher:天蓬老师
Correction status:qualified
Teacher's comments:不错, 效果也出来了, 这些都是一些小演示, 离实战还是有差距的
display: grid;
grid-auto-flow: row;
grid-auto-flow: column;
grid-template-rows:100px 100px 100px;
grid-template-columns:100px 100px
grid-auto-rows: 150px;
grid-auto-column: 150px;
grid-template-rows: 100px 100px 100px;
grid-template-columns: 100px 100px 100px;
grid-template-rows: 100px auto 100px;
grid-template-columns: 20% 30% auto;
grid-template-rows: 1fr 1fr 1fr;
grid-template-columns: 1fr 1fr 1fr;
grid-template-columns: repeat(3,100)
grid-template-rows: repeat(3,100px);
grid-template-columns: repeat(2,50px 100px);
grid-template-columns: repeat(2 minmax(50px 100px));
grid-template-rows: repeat(3 minmax(150px 1fr));
grid-template-columns: repeat(auto-fill,100px);
grid-row-start: 1;
grid-row-end: 3;
grid-column-start: 1;
grid-column-end: 3;
填满
grid-row-start: 1;
grid-row-end: -1;
grid-column-start: 1;
grid-column-end: -1;
grid-row: 1/3;
grid-column: 3/5;
grid-row-start: 3;
grid-row-end: span 2;
grid-column-start: 1;
grid-column-end: span 2;
或 起始位置就是元素位置
grid-row-end: span 2;
grid-column-end: span 2;
grid-row-start: r2-start;
grid-row-start: r1-end;
grid-column-start: c3-start;
grid-area: 1/1/2/5;
偏移量简化
grid-area: 1/1 / span 1 / span 4;
或者更简化
grid-area: span 1 / span 4;
甚至更简化 grid-area: span 2;
grid-template-area
网格区占位符知识 "..."
grid-area: header-start / header-start / header-end / header-end; }
justify-content: center;
align-content: center;
justify-content:space-between
justify-content:space-around
justify-content:space-evenly
align-content:space-between
align-content:space-around
align-content:space-evenly
或者简写
place-content
justify-item: stretch;
align-item: stretch;
align-items: center;
place-items: center center;
justify-self: start;
align-self: end;
place-self: center;
column-gap: 5px;
row-gap: 5px;
gap: 5px;
grid属性和flex属性很像,因此,并不难记,难点是容易和flex混淆。
据说计算机二进制来源于中国的太极八卦,二级制都来自于中国太极八卦,真是一生二,二生三,三生万物,学习越深入,越觉得和我国的太极八卦,五行等有相通之处,代码变化多端,单元格针对容器位置可以变化,项目针对单元格位置,都可以变化,而且项目可以无限大(占很多个单元格),项目又可以无限小(在单元格中还能有各种对齐方式),真的觉得很我国的太极理论太像了。有意思,好玩!
难道宇宙就是二进制代码编写的?我们的世界就是虚拟世界的写出来的东西吗,这难道是人生的真谛?
继续努力,相信孰能生巧。加油。
作业是我上机自己练习的几个东西,上传到了自己的服务器上,基本和课堂内容是一致的。