最新回答 / 慕数据0028241
js代码写在head里,你写的是window.onload(){};写错了 应该是widow.onload=function(){}; 所有的js代码写在function里
2018-12-22
最新回答 / fortunate蚂蚁
#move{ width: 300px; border:1px solid #ccc; margin:0 auto; padding:10px; overflow: hidden; } #move a{ display: inline-block; width: 58px; height: 25px; border:1px solid #ddd; border-radius: 3px; text-align: center; margin:10px 17...
2018-11-11
最新回答 / 慕粉2144247501
定时器,timer=setInterval(function(){//里面执行的操作},30);//30表示:每隔30毫秒,就执行一次function里面的操作
2018-11-10
最赞回答 / 慕粉3673019
视频中flag的声明位置应该是写错了,实际上应该是写在定时器内。视频中为什么动画会停止?完全是因为speed归0了,动画停止了,但实际上定时器并没有停止,还在继续运行。感谢 @纸丶两面白 同学!
2018-09-14
最新回答 / qq_零_137
icur = Math.round((getStyle(obj, attr)) * 100);这句应该改成icur=Math.round(parseFloat(getStyle(obj,attr))*100);
2018-09-11