marquee.wxss
570 Bytes
/* components/marquee/marquee.wxss */
.marquee-box {
padding: 14rpx;
position: relative;
box-sizing: border-box;
background: rgba(239, 168, 118,.3);
}
.marquee-box .img {
position: absolute;
width: 26rpx;
height: 24rpx;
top: 50%;
left: 20rpx;
transform: translateY(-50%);
}
.marquee-box .box {
width: calc(100% - 46rpx);
margin-left: 46rpx;
position: relative;
overflow: hidden;
}
.marquee-box .box .content{
width: auto;
height:100%;
position: absolute;
top: 0;
left: 0;
white-space: nowrap;
}