最新回答 / 浪奇學長
你css樣式寫在行內才可以像視頻內這樣寫,不然就應該用
list.style.left?=?list.offsetLeft?+?offset?+?'px'?;也可以console.log()看看倆個的屬性,就知道了。
2019-10-20
最新回答 / _堇年
原因在這里? var myIndex = parseInt(this.getAttribute('index'));? ? ? ? ? ? ? ? ? ? var offset = -600 * (myIndex - index);? ? ? ? ? ? ? ? ? ? animate(offset);假如offset =0,可以推出myIndex =index;當myIndex =index時,其實就是當前顯示高亮的小圓點和你點擊的小圓點是同一個小圓點。既然這樣;那么在function animate(...
2019-09-18
最新回答 / 遇上兔跑的龜
? ? next.onclick = function(){? ? if (animated) {? ? ? ? ? ? ? ? ? ? return;? ? ? ? ? ? ? ? }? ? ? ? ? ? ? ? if (!animated) {? ? animate(-600);? ? ? ? ? ? ? ? }? ? if(index == 5){? ? index = 1;? ? }else{? ? index += 1;? ? }? ? showButton();? ? console.log...
2019-09-18
最新回答 / 彡沐
自動播放時鼠標移進移出沒效果 :container.onmouseover?=?stop; ? ? ? ? container.onmouseout?=?play;
2019-08-10