marquee.wxss
608 Bytes
/* components/marquee/marquee.wxss */
.marquee-box {
padding: 14rpx;
position: relative;
box-sizing: border-box;
/* padding-right: 100rpx; */
display: flex;
align-items: center;
}
.marquee-box image {
position: absolute;
width: 26rpx;
height: 22rpx;
top: 50%;
left: 10rpx;
transform: translateY(-50%);
}
.marquee-box .box {
width: calc(100% - 36rpx);
margin-left: 36rpx;
position: relative;
overflow: hidden;
}
.marquee-box .box .content{
width: auto;
height:100%;
position: absolute;
top: 0;
left: 0;
white-space: nowrap;
}