1.实现360度循环旋转的
@-webkit-keyframes rotation{ from {-webkit-transform: rotate(0deg);} to {-webkit-transform: rotate(360deg);} } .Rotation{ -webkit-transform: rotate(360deg); animation: rotation 3s linear infinite; -moz-animation: rotation 3s linear infinite; -webkit-animation: rotation 3s linear infinite; -o-animation: rotation 3s linear infinite; 2.input获取焦点跟失去焦点的方法分别是$('input').focus(function(){})$('input').blur(function(){}) 3.点击鼠标切换状态的 var flag = 1 ; $( "#remember" ). click ( function () { if (flag == 1 ) { $( '#img1' ). attr ( 'src' , "../../../img/home/circle_right.png" ) ; //this.setCookie("user",userName,7); //this.setCookie("PWD",userPwd,7); flag = 0 ; } else { $( '#img1' ). attr ( 'src' , "../../../img/home/circle_null.png" ) ; flag = 1 ; } }) ; 网上说的toggle不能实现这种功能