html:

<input type="button" id="zidong3" style="top: 12px;" />

css:

#zidong3
{
position: absolute;
top: 7px;
right: 7px;
width: 24px;
height: 24px;
border: none;
background: #fff url(../images/refresh.png) no-repeat;
background-size: 100% 100%;
/*background-position: -1px 5px;*/
border-radius: 50%;
}

/*重点:*/

@-webkit-keyframes gira {
from{-webkit-transform: rotate(0deg);}
to{-webkit-transform: rotate(360deg);}
}

@keyframes gira {
from{-webkit-transform: rotate(0deg); transform: rotate(0deg)}
to{-webkit-transform: rotate(360deg); transform: rotate(360deg)}
}

JS:

$("#zidong3").click(function () {
$(this).css("-webkit-animation", "gira 1s ease-out 1");
$(this).css("-ms-animation", "gira 1s ease-out 1");
$(this).css("animation", "gira 1s ease-out 1");
var z = $(this);
setTimeout(function () {
$(z).css("animation", "");
}, 1000);
//getGPS();//获取位置
});

有时间说明

最新文章

  1. C# 实现函数回调
  2. Mac下升级Nodejs
  3. 【Java每日一题】20161027
  4. Tomcat:bio nio 的设计
  5. 网页(HTML)中的特殊字符
  6. python核心编程第六章练习6-12
  7. 使用Jsoup解析html网页
  8. 30天,O2O速成攻略【8.22北京站】
  9. [reprint]malloc与calloc的区别
  10. *[hackerrank]Lexicographic paths
  11. JavaScript版几种常见排序算法
  12. 【OC学习-12】什么是类的继承?为什么要继承?以及继承里面的注意事项
  13. Visual Studio 2013 发布正式版
  14. POJ1182食物链(并查集)
  15. iOS项目之使用开关控制日志输出的功能
  16. Python 基础API
  17. shell 文件描述符
  18. C#创建无窗体的应用程序
  19. 看见- 柴静-kindle书摘
  20. testNG的高级用法 --DataProvider

热门文章

  1. centos-系统语言检查设置安装
  2. 在package.json里面的script设置环境变量,区分开发及生产环境。注意mac与windows的设置方式不一样
  3. yii2 使用twig 模板引擎
  4. SSIS 基础知识
  5. EM算法 The EM Algorithm
  6. 【MySQL】InnoDB日志机制深入分析
  7. 51nod 1471 小S的兴趣 sqrt
  8. [家里蹲大学数学杂志]第053期Legendre变换
  9. JDK源码包结构分类
  10. 23. Sum Root to Leaf Numbers