摘要:
.wrapper { display: grid; grid-template-columns: repeat(3, 1fr); //grid-template指网络模板,grid-template-columns属性指定网格列的轨道列表,通过指定的每个值来创建每列的列宽。使用repeat()可以创 阅读全文
摘要:
1.static 元素根据文档的正常流进行定位。top、right、bottom、left和z-index属性没有影响。这是默认值。 2.relative 元素根据文档的正常流进行定位。然后根据的top、right、bottom和left值相对于自身进行偏移。偏移量不会影响任何其他元素的位置,因此, 阅读全文