/* pages/hotProduct/index.wxss */ @import '../../assets//css/commonList.wxss'; .scrollView { height: 92rpx; line-height: 92rpx; padding: 0 20rpx; box-sizing: border-box; background: #fff; position: fixed; top: 0; left: 0; z-index: 2; } .item { display: inline-block; font-size: 28rpx; color: #000000; padding: 0 30rpx; } .icon { display: inline-block; width: 28rpx; height: 28rpx; vertical-align: middle; } .active { color: #2296f3; position: relative; } .active::after { content: ""; display: block; width: 100%; height: 4rpx; border-radius: 4rpx; background: #2A89F3; margin: auto; margin-top: -14rpx; }