.scroll-view_H{ white-space: nowrap; position: fixed; top: 78rpx; left: 0; z-index: 10; background: #fff; box-shadow: 0 0 3rpx #fff; } .scroll-view-item{ height: 300rpx; } .scroll-view-item_H{ position: relative; display: inline-block; padding: 10rpx 28rpx; height: 40rpx; font-size: 28rpx; color: #333; } .scroll-view-item_H:after { content: ''; position: absolute; width: 70%; height: 4rpx; left: 15%; bottom: 6rpx; background: transparent; } .scroll-view-item_H.active { color: #eb4e4f } .scroll-view-item_H.active:after { background: #eb4e4f; }