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

JQ-動畫函數(shù)大全

Original 2018-11-30 16:56:41 227
abstrakt:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>JQ-動畫函數(shù)大全</title> <style type="text/css">  input{  &n
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>JQ-動畫函數(shù)大全</title>
<style type="text/css">
 input{
     border:1px solid #060;
     font-size:14px;
     padding:4px;
     font-family:Arial, Helvetica, sans-serif;
     background-color:#999;
     color:#0FF;
 }
</style>
<script type="text/javascript" src="jquery-3.3.1.min.js"></script>
<script type="text/javascript">
 $(function(){
    $("input:eq(0)").click(function(){
        //$("img").hide("fast");  //$("img").hide("normal");  //$("img").hide("slow");//動畫消失的時間
        $("img").hide(3000,function(){
            // alert("完成了!")
        });
    });
     $("input:eq(1)").click(function(){
        $("img").show(3000);//顯示圖像
    });
    
     $("input:eq(2)").click(function(){
        $("img").toggle(3000);//可以顯示或隱藏圖片
    });
    
     $("input:eq(3)").click(function(){
        $("img").fadeOut(3000);//從不透明變透明
    });
    
     $("input:eq(4)").click(function(){
        $("img").fadeIn(3000);//從透明變不透明
    });
    
     $("input:eq(5)").click(function(){
        $("img").fadeToggle(3000);//透明不透明相互轉(zhuǎn)換
    });
    
    $("input:eq(6)").click(function(){
        $("img").fadeTo(3000,0.2);//指明到相關(guān)的透明度
    });
    
    $("input:eq(7)").click(function(){
        $("img").slideUp(3000);//收起
    });
    
    $("input:eq(8)").click(function(){
        $("img").slideDown(3000);//展開
    });
    
    $("input:eq(9)").click(function(){
        $("img").slideToggle(3000);//收起或展開
    });
    $("input:eq(10)").click(function(){
        $('img').animate({opacity:'0.3',height:'400px',width:'400px'},800)
    });
    $("input:eq(11)").click(function(){
        $('img').animate({opacity:'0.3',height:'100px',width:'100px'},3000)
    });

 });
 
</script>
</head>
<body>
  <input type="button" value="Hide"/>
  <input type="button" value="Show"/>
  <input type="button" value="toggle"/>
  <input type="button" value="FadeOut"/>
  <input type="button" value="FadeIn"/>
  <input type="button" value="FadeToggle"/>
  <input type="button" value="FadeTo"/>
  <input type="button" value="slideUp"/>
  <input type="button" value="slideDown"/>
  <input type="button" value="sledeToggle"/>
  <input type="button" value="animate放大"/>
  <input type="button" value="animate縮小"/>
  <p><img src="QQ截圖20181130113832.jpg" width="100px" height="100px"></p>   
</body>
</html>


Versionshinweise

Beliebte Eintr?ge