日常总结一

xiaoxiao2021-02-28  34

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不能实现这种功能

转载请注明原文地址: https://www.6miu.com/read-2450253.html

最新回复(0)