本文实例讲述了jQuery实现基本淡入淡出效果的方法。分享给大家供大家参考,具体如下:
jQuery fadeIn()方法:用于淡入已隐藏的元素
jQuery fadeOut()方法:用于淡出可见的元素
<!DOCTYPE html>
<html>
<head>
[removed][removed]
[removed]
$(document).ready(function(){
$("button").click(function(){
$("#div1").fadeIn();
});