开发工具与关键技术:jQuery,MVC
作者:刘俊杰
撰写时间:2019年03月26日
jQuery animate()语法:$(selector).animate({params},speed,callback);
jQuery animate() 方法用于创建自定义动画;
jQuery animate()定义相对值,只需要在值的前面加上+=或-=;
下面讲一个关于jQuery animate定义相对值的案例
<html>
<head>
<style>
.a {
border :1px solid #000;
width:100px;
height:100px;
}
</style