已采納回答 / 慕設計0569333
javascript: 是一個偽協議,javascript:是表示在觸發(fā)默認動作時,執(zhí)行一段JavaScript代碼,而 javascript:; 表示什么都不執(zhí)行,這樣點擊時就沒有任何反應。?
2019-12-17
最新回答 / 浪奇學長
你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