/* pages/home/index.wxss */ .homelist{ position: relative; width: 730rpx; overflow: hidden; margin: 0 auto; border-radius: 15rpx; box-shadow: #ccc 0 0 10rpx; } .image{ min-height: 400rpx; width: 730rpx; } .title{ padding: 15rpx 10rpx; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tag{ position: absolute; border-radius: 15rpx; color: #fff; background-color: #aaaaaa; padding: 5rpx 10rpx; font-size: 14px; top: 5rpx; left: 5rpx; }