/* static/nativeComponents/Notice/index.wxss */ .notice{ font-size: 32rpx; position: relative; overflow: hidden; height: 80rpx; width: calc(100vw - 40rpx); margin-left: 20rpx; } .marquee { position: absolute; height: 80rpx; line-height: 80rpx; /* width: 100%; */ margin: 0 auto; white-space: nowrap; box-sizing: border-box; }