.my-course { margin-top: 44rpx; display: flex; /* justify-content: space-around; */ flex-direction: row; flex-wrap: wrap; } .book-item{ margin-left: 20rpx; margin-bottom: 20rpx; width: 214rpx; } .book-box{ width: 214rpx; height: 290rpx; } .book-box>image{ width:100%; height: 100%; } .book-item>.item-title{ margin-top:18rpx; width: 100%; font-size: 24rpx; color:#373737; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; text-align: center; }