m0_37219080 2017-01-05 08:12 采纳率: 25%
浏览 569

老虎机的形式。怎么让他慢慢停下来。谢谢大神们了

div{position:absolute;border:1px solid red;height:50;width:50;text-align:center;top:100;background-color:rgb(2,255,255);background-size:100%;color:yellow;} div:nth-child(n+8):nth-child(-n+15){right:800;} div:nth-child(n+16):nth-child(-n+23){top:450;} div:nth-child(n+23):nth-child(-n+28){right:450} span{margin:20px;} #w1{right:450;} #w2{right:500;} #w3{right:550;} #w4{right:600;} #w5{right:650;} #w6{right:700;} #w7{right:750;} #w8{right:800;} #w9{top:150} #w10{top:200;} #w11{top:250;} #w12{top:300;} #w13{top:350;} #w14{top:400;} #w15{top:450;} #w16{right:750} #w17{right:700} #w18{right:650;} #w19{right:600;} #w20{right:550;} #w21{right:500;} #w22{right:450;} #w23{top:400} #w24{top:350} #w25{top:300} #w26{top:250} #w27{top:200} #w28{top:150} #n{position:absolute;right:600;top:250;height:100;width:100;border-radius:90% 60% 90% 60%;background:url(0.jpg);background-size:100%}
王贵纳
王灿
张利江
钟备
贺飞
李小龙
陈文峰
王枭
赵书巍
陈诚
付羽杰
雷飞
王伟
尹帅
谢铭明
李道鹏
李俊
恭函
杨鑫鑫
康平
汪科玉
周庆
罗老师
罗老师
罗老师
罗老师
罗老师
罗老师

开始

var c=0; function aa(){ var a=document.getElementsByTagName('div'); for(var i=0;i<=a.length-1;i++){ a[i].style.background="rgb(2,255,255)" a[c].style.background="rgb(255,0,0)" } c++; if(c>27){ c=0; } console.log(a) } var flag=true; //设置开始或者结束的标记 function xx(){ var begin=document.getElementById("n"); if(flag==true){ setId=setInterval("aa()",50); begin.innerHTML="结束"; flag=false; }else{ clearInterval(setId); begin.innerHTML="开始"; flag=true; } }
  • 写回答

0条回答

    报告相同问题?

    悬赏问题

    • ¥15 如何用stata画出文献中常见的安慰剂检验图
    • ¥15 c语言链表结构体数据插入
    • ¥40 使用MATLAB解答线性代数问题
    • ¥15 COCOS的问题COCOS的问题
    • ¥15 FPGA-SRIO初始化失败
    • ¥15 MapReduce实现倒排索引失败
    • ¥15 ZABBIX6.0L连接数据库报错,如何解决?(操作系统-centos)
    • ¥15 找一位技术过硬的游戏pj程序员
    • ¥15 matlab生成电测深三层曲线模型代码
    • ¥50 随机森林与房贷信用风险模型