亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

jQuery ?? - ????

jQuery ???? ??

jQuery? ???? ??? ???? ??? ?? ? ????.

jQuery?? ??? ?? ???? ???? ????.

slideDown()

slideUp()

slideToggle()


jQuery SlideDown() ???

jQuery SlideDown() ???? ??? ??? ?????? ? ?????.

??:

$(selector).slideDown(speed,callback);

???? ?? ????? ??? ?? ??? ?????. "??", "??" ?? ??? ?? ??? ? ????.

??? ?? ????? ????? ??? ? ??? ??? ?????.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js">
</script>
<script> 
$(document).ready(function(){
  $("#flip").click(function(){
    $("#panel").slideDown("slow");
  });
});
</script>
 
<style type="text/css"> 
#panel,#flip
{
padding:5px;
text-align:center;
background-color:#e5eecc;
border:solid 1px #c3c3c3;
}
#panel
{
padding:50px;
display:none;
}
</style>
</head>
<body>
 
<div id="flip">點(diǎn)我滑下面板</div>
<div id="panel">Hello world!</div>
</body>
</html>

jQuery SlideUp() ???

jQuery SlideUp() ???? ??? ?? ?????? ? ?????.

??:

$(selector).slideUp(speed,callback);

???? ?? ????? ??? ?? ??? ?????. "??", "??" ?? ??? ?? ??? ? ????.

??? ?? ????? ????? ??? ? ??? ??? ?????.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js">
</script>
<script> 
$(document).ready(function(){
  $("#flip").click(function(){
    $("#panel").slideUp("slow");
  });
});
</script>
 
<style type="text/css"> 
#panel,#flip
{
padding:5px;
text-align:center;
background-color:#e5eecc;
border:solid 1px #c3c3c3;
}
#panel
{
padding:50px;
}
</style>
</head>
<body>
<div id="flip">點(diǎn)我拉起面板</div>
<div id="panel">Hello world!</div>
</body>
</html>

jQuery SlideToggle() ???

jQuery SlideToggle() ???? SlideDown()? SlideUp() ??? ??? ??? ? ????.

??? ??? ?????? SlideToggle()? ??? ?? ???????.

??? ?? ?????? SlideToggle()? ??? ??? ???????.

$(selector).slideToggle(speed,callback);

???? ?? ????? ??? ?? ??? ?????. "??", "??" ?? ??? ?? ??? ? ????.

??? ?? ????? ????? ??? ? ??? ??? ?????.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js">
</script>
<script> 
$(document).ready(function(){
  $("#flip").click(function(){
    $("#panel").slideToggle("slow");
  });
});
</script>
 
<style type="text/css"> 
#panel,#flip
{
padding:5px;
text-align:center;
background-color:#e5eecc;
border:solid 1px #c3c3c3;
}
#panel
{
padding:50px;
display:none;
}
</style>
</head>
<body>
<div id="flip">顯示或隱藏面板。</div>
<div id="panel">Hello world!</div>
</body>
</html>


???? ??
||
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php中文網(wǎng)(php.cn)</title> <script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script> <script type="text/javascript"> $().ready(function () { $("#bta").click(function () { $("#unit").stop(true, false).animate({"left": 0}, 500); }); $("#btb").click(function () { $("#unit").stop(true, false).animate({"left": -300}, 500); }) }); </script> <style type="text/css"> * { padding: 0; margin: 0;} #box {width: 300px; height: 150px; margin-bottom: 50px; position: relative; overflow: hidden; } #unit { width: 600px; position: absolute; } #unit div {float: left; width: 300px; height: 150px;} #bga {background-color: #F30;} #bgb {background-color: #F90;} #bta, #btb { float: left; width: 50px; padding-right: 50px; color: #FFF; cursor: pointer;} </style> </head> <body> <div style="width:800px; height:300px; padding-top:100px; background-color:#999; margin:0 auto;"> <div id="box"> <div id="unit"> <div id="bga">框一</div> <div id="bgb">框二</div> </div> </div> <div id="bta">左</div> <div id="btb">右</div> </div> </body> </html>