乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      jQuery 鼠標(biāo)移入移出事件切換

       昨夜霧濃 2018-04-24
      1. <!DOCTYPE html>  
      2. <html>  
      3.     <head>  
      4.         <meta charset="utf-8" />  
      5.         <script type="text/javascript" src="js/jquery-3.1.1.min.js" ></script>  
      6.         <link rel="stylesheet" href="css/style.css" />  
      7.         <title></title>  
      8.         <script>  
      9.             $(function(){  
      10.                 $(msg).on({  
      11.                     mouseover : function(){  
      12.                         $(this).wrap("<h1>") ;  
      13.                     } ,  
      14.                     mouseout : function(){  
      15.                         $(this).unwrap() ;  
      16.                     }   
      17.                 }) ;  
      18.             }) ;    
      19.         </script>  
      20.     </head>  
      21.     <body>   
      22.         <p id="msg">Hello World !!!</p>  
      23.     </body>  
      24. </html>  

      hover() 方法規(guī)定當(dāng)鼠標(biāo)指針懸停在被選元素上時(shí)要運(yùn)行的兩個(gè)函數(shù)。

      jQuery 1.7 版本前該方法觸發(fā) mouseenter mouseleave 事件。

      jQuery 1.8 版本后該方法觸發(fā) mouseover mouseout 事件。

      1. <!DOCTYPE html>  
      2. <html>  
      3.     <head>  
      4.         <meta charset="utf-8" />  
      5.         <script type="text/javascript" src="js/jquery-3.1.1.min.js" ></script>  
      6.         <link rel="stylesheet" href="css/style.css" />  
      7.         <title></title>  
      8.         <script>  
      9.             $(function(){  
      10.                 $(msg).hover(  
      11.                     function(){  
      12.                         $(this).wrap("<h1>") ;  
      13.                     } ,  
      14.                     function(){  
      15.                         $(this).unwrap() ;  
      16.                     }   
      17.                 ) ;  
      18.             }) ;    
      19.         </script>  
      20.     </head>  
      21.     <body>   
      22.         <p id="msg">Hello World !!!</p>  
      23.     </body>  
      24. </html>  


        本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點(diǎn)擊一鍵舉報(bào)。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評論

        發(fā)表

        請遵守用戶 評論公約

        類似文章 更多