我直接按老師的方法寫function random(range){...}會(huì)報(bào)錯(cuò),而用arguments就好了...但是道理應(yīng)該是一樣的呀,為什么會(huì)報(bào)錯(cuò)呢
2017-04-30
for(s in data) 按另一種方法data.length需要減1, 否則有一張圖片顯示不了 .
for(var s=0; s<data.length-1; s++) {
}
for(var s=0; s<data.length-1; s++) {
}
2017-04-27
視頻看了好多遍 CSS的效果總是不對(duì),改代碼改到想撞墻,看了別人的代碼才明白...視頻中有很多被遺漏的細(xì)節(jié)...要命了...
2017-04-27
新手說下沒有實(shí)現(xiàn)視頻效果的可能原因
1.使用transform和transition時(shí)注意添加前綴以適應(yīng)各個(gè)瀏覽器的兼容性.
-webkit-transition-
-moz-transition-
-o-transition-
-ms-transition-
2.老師的類名有的使用了_(如photo_back, photo_center), 有的使用了-(photo-wrap)...一定要細(xì)心,最好統(tǒng)一一下
3.扣子同學(xué)說的photo_back是一下子就加入到photo里去了(見8:50)
1.使用transform和transition時(shí)注意添加前綴以適應(yīng)各個(gè)瀏覽器的兼容性.
-webkit-transition-
-moz-transition-
-o-transition-
-ms-transition-
2.老師的類名有的使用了_(如photo_back, photo_center), 有的使用了-(photo-wrap)...一定要細(xì)心,最好統(tǒng)一一下
3.扣子同學(xué)說的photo_back是一下子就加入到photo里去了(見8:50)
2017-04-27