码迷,mamicode.com
首页 > Web开发 > 详细

jQuery淡入淡出效果

时间:2017-08-16 17:09:11      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:otc   doctype   func   title   set   har   idt   png   div   

技术分享

 

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>淡入淡出效果</title>
<script src="https://cdn.bootcss.com/jquery/1.10.2/jquery.min.js">
</script>
<script>
$(document).ready(function(){
    $("#div1").hide();
    $("button").click(function(){
        $("#div1").fadeToggle();
        
    });
});
</script>
</head>
<body>

<p></p>
<button>点击淡入/淡出</button>
<br><br>
<div id="div1" style="width:100px;height:100px;"></div>
<br>

</body>
</html>

jQuery淡入淡出效果

标签:otc   doctype   func   title   set   har   idt   png   div   

原文地址:http://www.cnblogs.com/Yoko-815/p/7373664.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!