亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

jQuery 自定義動畫

original 2018-12-11 09:58:14 214
abstrait:<!DOCTYPE html><html><head> <meta charset="utf-8"> <title> jQuery 自定義動畫</title> <script type="text/javascript" src="jquery-3.3.1.min.js&

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<title> jQuery 自定義動畫</title>

<script type="text/javascript" src="jquery-3.3.1.min.js"></script>

<style type="text/css">

div{width:200px;height:200px;background:pink;position:absolute;}

</style>

<script type="text/javascript">

$(document).ready(function(){

$('.but1').click(function(){

$('p').animate({fontSize:"400"},1500)

})

$('.but2').click(function(){

$('div').animate({

left:'200px',

opacity:'0.3',

height:'400px',

width:'400px'


},1500)

})

})

</script>

</head>

<body>

<button class='but1'>點擊字體放大</button>

<p> jQuery 自定義動畫 jQuery 自定義動畫</p>

<button class="but2">點擊移動</button>

<div></div>

</body>

</html>


Notes de version

Entrées populaires