jq之fadeOut()
生活随笔
收集整理的這篇文章主要介紹了
jq之fadeOut()
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
<!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(){/*淡出*/$("#div1").fadeOut();$("#div2").fadeOut("slow");$("#div3").fadeOut(3000);});});</script>
</head>
<body>
<p>test</p>
<button>點擊</button>
<br/>
<div id="div1" style="width:80px;height:30px;background-color: red;"></div>
<div id="div2" style="width:90px;height:30px;background-color: blue;"></div>
<div id="div3" style="width:1000px;height:30px;background-color: yellow;"></div>
</body>
</html>
總結(jié)
以上是生活随笔為你收集整理的jq之fadeOut()的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: React之事件处理
- 下一篇: Python2.x 和 Python3.