.marquee {
height: 2rem;
width: 100%;
line-height: 2rem;
background: #FFF5E3;
color: #FF9D00;
padding: 0 .7rem;
font-size: .8rem;
overflow: hidden;
position: relative;
div {
display: block;
width: 300%;
height: 2rem;
position: absolute;
overflow: hidden;
animation: marquee 10s linear infinite;
span {
float: left;
width: 50%;
}
}
}
css3水平滚动
最新推荐文章于 2024-09-04 17:39:50 发布