<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制作轮播效果
本文探讨了使用HTML的marquee元素创建滚动文字时遇到的问题,特别是在iOS设备上的性能表现不佳,并建议采用更现代的技术如Swiper来实现流畅的轮播效果。
233

被折叠的 条评论
为什么被折叠?



