摘要:<!DOCTYPE html><html><head> <title>jQuery事件</title> <script type="text/javascript" src="js/jquery-3-3.1.min.js"></script> <script type=
<!DOCTYPE html>
<html>
<head>
<title>jQuery事件</title>
<script type="text/javascript" src="js/jquery-3-3.1.min.js"></script>
<script type="text/javascript">
</script>
</head>
<body>
<script type="text/javascript">
$(document).ready(function(){
$('but1').click(function(){
$('p').animate({fontSize:'40px'},1500)
})
})
</script>
<button class="but1">點(diǎn)擊字體放大</button>
<p>jQuery中我們的使用 animate()方法創(chuàng)建自定義的動(dòng)畫</p>
</body>
</html>