/* pages/classroom/classroom.wxss */ .grid-view { display: -webkit-flex; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; width: 100%; } /* 下面这个实现表格式的布局,有多行多列,width=25% 表示将会显示4列 */ .grid-celll { margin-left:auto; margin-right:auto; text-align: center; width:230rpx; display: flex; flex-direction: column; flex-wrap: wrap; } .grid-cell { padding: 30rpx 0; border-bottom: 1rpx solid #eee; position: relative; } .bla { color:black; } .reed { color: red; position: absolute; right: 3rpx; top: 50%; height: 40rpx; line-height: 40rpx; margin-top: -20rpx; } .gre { color: greenyellow; position: absolute; right: 3rpx; top: 50%; height: 40rpx; line-height: 40rpx; margin-top: -20rpx; } .index { font-family: 'PingFang SC'; } .sco { margin: 20rpx 50rpx; }