.grid { display: flex; flex-direction: row; flex-wrap: wrap; } .grid-item { text-align: center; position: relative; background-color: white; position: relative; } .grid-item-wrapper { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; flex-direction: column; } .grid-icon { width: 30%; height: 30%; } .grid-text { color: #000; font-size: 28rpx; line-height: 1; margin-top: 28rpx; }