fadein()
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title></title> <link rel="stylesheet" href="resource/bootstrap/css/bootstrap.css"/> <script src="resource/jQuery/jquery-1.11.3.js"></script> <script src="resource/bootstrap/js/bootstrap.js"></script> <script> $().ready(function(){ $("button").click(function(){ $("#div1").fadeIn(); $("#div2").fadeIn(3000); $("#div3").fadeIn("slow"); }) }) </script> </head> <body> <p>Demonstrate fadeIn() with different parameters.</p> <button>Click to fade in boxes</button> <br><br> <div id="div1" style="width:80px;height:80px;display:none;background-color:red;"></div><br> <div id="div2" style="width:80px;height:80px;display:none;background-color:green;"></div><br> <div id="div3" style="width:80px;height:80px;display:none;background-color:blue;"></div> </body> </html>
---- 动动手指关注我!或许下次你又能在我这里找到你需要的答案!ZZZZW与你一起学习,一起进步!