最新回答 / 海的那邊是海
搞懂了,關鍵還是在newleft上,注意如果不用newleft的話,即使老師的也不會對的,if判斷中,odiv1.style.left>-950是字符串和數字的比較了,這樣就不對了.
2017-03-27
最新回答 / 待我須發斑白4046384
你需要一個div定位這個輪播圖的位置,在這個div內部才是輪播,至于100%的寬度,你修改輪播圖的div就行了,如下:<...code...>
2017-02-22
最新回答 / stormchou
可以這樣試試index += 1; if (index > 5) { index = 1; }index -= 1; if (index < 1) { index = 5; }
2017-02-18
最新回答 / 微小唯
myIndex=this.getAttribute('index') ?寫成myIndex=parseInt(this.getAttribute('index'))就可以了
2017-02-17