用CSS做文字向上移动的轮播

来源:互联网 发布:linux 终端 重启 编辑:程序博客网 时间:2024/05/16 08:17
 <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制作轮播效果


0 0