使用css实现计时功能_第1页
已阅读5页,还剩13页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、使用css实现计时功能time demohtml, body height: 100%;body font-family: "microsoft yahei"font-size: 18px;margin: 0;padding: 0;.site-wrapper display: table;width: 100%;height: 100%;min-height: 100%;.site-wrapper-inner vertical-align: middle;display: table-cell;.site-wrapper-content width: 240

2、px;margin: 0 auto;text-align: center;.time margin: 10px 0 0 80px;padding: 0;list-style: none;.time:after content: ""display: block;height: 0;clear: both;visibility: hidden;.time > li text-align: center;float: left;position: relative;overflow: hidden;width: 10px;height: 20px;line

3、-height: 20px;.time > li > div position: absolute;line-height: 20px;keyframes step6 from top: 0;to top: -120px;-moz-keyframes step6 /* firefox */from top: 0;to top: -120px;-webkit-keyframes step6 /* safari 和 chrome */from top: 0;to top: -120px;-o-keyframes step6 /* opera */from top: 0;to top:

4、-120px;keyframes step10 from top: 0;to top: -200px;-moz-keyframes step10 /* firefox */from top: 0;to top: -200px;-webkit-keyframes step10 /* safari 和 chrome */from top: 0;to top: -200px;-o-keyframes step10 /* opera */from top: 0;to top: -200px;.min1 animation: step6 steps(6) 3600s infinite;-moz-anim

5、ation: step6 steps(6) 3600s infinite; /* firefox */-webkit-animation: step6 steps(6) 3600s infinite; /* safari 和 chrome */-o-animation: step6 steps(6) 3600s infinite; /* opera */.min2 animation: step10 steps(10) 600s infinite;-moz-animation: step10 steps(10) 600s infinite; /* firefox */-webkit-anima

6、tion: step10 steps(10) 600s infinite; /* safari 和 chrome */-o-animation: step10 steps(10) 600s infinite; /* opera */.sec1 animation: step6 steps(6) 60s infinite;-moz-animation: step6 steps(6) 60s infinite; /* firefox */-webkit-animation: step6 steps(6) 60s infinite; /* safari 和 chrome */-o-animation

7、: step6 steps(6) 60s infinite; /* opera */.sec2 animation: step10 steps(10) 10s infinite;-moz-animation: step10 steps(10) 10s infinite; /* firefox */-webkit-animation: step10 steps(10) 10s infinite; /* safari 和 chrome */-o-animation: step10 steps(10) 10s infinite; /* opera */.mil1 animation: step10

8、steps(10) 1s infinite;-moz-animation: step10 steps(10) 1s infinite; /* firefox */-webkit-animation: step10 steps(10) 1s infinite; /* safari 和 chrome */-o-animation: step10 steps(10) 1s infinite; /* opera */.mil2 animation: step10 steps(10) 0.1s infinite;-moz-animation: step10 steps(10) 0.1s infinite

9、; /* firefox */-webkit-animation: step10 steps(10) 0.1s infinite; /* safari 和 chrome */-o-animation: step10 steps(10) 0.1s infinite; /* opera */.mil3 animation: step10 steps(10) 0.01s infinite;-moz-animation: step10 steps(10) 0.01s infinite; /* firefox */-webkit-animation: step10 steps(10) 0.01s inf

10、inite; /* safari 和 chrome */-o-animation: step10 steps(10) 0.01s infinite; /* opera */.min1, .min2, .sec1, .sec2, .mil1, .mil2, .mil3 animation-play-state: paused;-moz-animation-play-state: paused; /* firefox */-webkit-animation-play-state: paused; /* safari 和 chrome */-o-animation-play-state: pause

11、d; /* opera */start:checked .time .min1,start:checked .time .min2,start:checked .time .sec1,start:checked .time .sec2,start:checked .time .mil1,start:checked .time .mil2,start:checked .time .mil3 animation-play-state: running;-moz-animation-play-state: running; /* firefox */-webkit-animation-play-st

12、ate: running; /* safari 和 chrome */-o-animation-play-state: running; /* opera */stop:checked .time .min1,stop:checked .time .min2,stop:checked .time .sec1,stop:checked .time .sec2,stop:checked .time .mil1,stop:checked .time .mil2,stop:checked .time .mil3 animation-play-state: paused;-moz-animation-p

13、lay-state: paused; /* firefox */-webkit-animation-play-state: paused; /* safari 和 chrome */-o-animation-play-state: paused; /* opera */reset:checked .time .min1,reset:checked .time .min2,reset:checked .time .sec1,reset:checked .time .sec2,reset:checked .time .mil1,reset:checked .time .mil2,reset:checked .time .mil3 animation: none;-moz-animation: none; /* firefox */-webkit-animation: non

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论