<div style="width:200px; height:300px">
<marquee direction="up" truespeed="truespeed" height="300px" behavior="scroll" scolldelay="200">
<p>hellohellohellohellohellohellohellohellohellohello</p>
<p>hellohellohellohellohellohellohellohellohellohello</p>
<p>hellohellohellohellohellohellohellohellohellohello</p>
</marquee>
</div>
但是这个做法在某些地方会有明显卡顿,例如IOS中,还是建议使用swiper制作轮播效果