0
// .items direct child
var itemsContainer = $('.blog-ticker').children();
// each item in .items
var items = $('.blog-ticker').children().children();
setInterval(function(){
var i = 0;
itemsContainer.css({
'top': -(items[i].clientHeight)+'px'
});
if(i <= items.length) {
i++;
}
}, 2000);
停止後的第一輪...混亂設置英寸我該怎麼辦?setInterval停止一次後
啊。輝煌。有時候你看不出有什麼明顯的哈哈。感謝@Rhumborl – troychroi