jq之animate() left font
生活随笔
收集整理的這篇文章主要介紹了
jq之animate() left font
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"><title>jq之demo</title><!--線上jq庫--><script src="https://code.jquery.com/jquery-3.4.1.min.js"></script><script>$(document).ready(function(){$("button").click(function(){/*動畫*/var div=$("div");div.animate({left:'100px'},"slow");div.animate({fontSize:'3em'},"slow");});});</script>
</head>
<body>
<button>開始</button>
<p>html元素想要移動把position設為relative,fixed或absolute</p>
<div style="background: aqua;height: 50px;width: 50px;position: absolute">hi</div>
</html>
總結
以上是生活随笔為你收集整理的jq之animate() left font的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Arraylist线程不安全原因
- 下一篇: jq之隐藏和显示