/* pages/tables/index.wxss */ .list-back { display: flex; flex-wrap: wrap; justify-content: space-around; } .list-back .table { margin-top: 30rpx; width: 45%; height: 200rpx; background-color: #f3f4f5; border-radius: 8rpx; display: flex; position: relative; align-items: center; justify-content: center; } .table .name { font-size: 40rpx; color: #333333; } .table .status { position: absolute; top: 0; right: 0; width: 50rpx; height: 50rpx; font-size: 20rpx; color: white; text-align: center; line-height: 50rpx; } .table .status.free { background-color: greenyellow; } .table .status.busy { background-color: red; }