Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是默认的 SmoothDivScroll 演示,但使用无限循环,一切正常:
http://smartpeopletalkfast.co.uk/smoothdivscroll/jQuery%20Smooth%20Div%20Scroll%20by%20Thomas%20Kahn%20-%20smooth%20content%20scrolling%20using%20jQuery.html
在这里,我所做的就是用列表中的文本替换图像。它会滚动,但不会循环:
http://smartpeopletalkfast.co.uk/smoothdivscroll/LIST%20-%20jQuery%20Smooth%20Div%20Scroll%20by%20Thomas%20Kahn%20-%20smooth%20content%20scrolling%20using%20jQuery%20copy.html _知道为什么会这样?谢谢
如果我将文本放在 div 中,而不是列表中,它会起作用。