<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
<script>
$(function(){
$('button').click(function(){
var div = $('div');
div.animate({left:'100px'},"slow");
div.animate({fontSize:'3em'},"fast");
})
})
</script>
</head>
<body>
<button type="button">开始动画</button>
<div style="background: yellow;width: 200px;height: 200px;position: absolute;">
hello world
</div>
</body>
</html>
python前端基础--jquery动画03
猜你喜欢
转载自blog.csdn.net/qq_42336700/article/details/82118808
今日推荐
周排行