国产chinesehdxxxx野外,国产av无码专区亚洲av琪琪,播放男人添女人下边视频,成人国产精品一区二区免费看,chinese丰满人妻videos

App下載
首頁javascriptcss_attributejQuery Style - 如何將元素的hover css屬性分配給其他一些元素

jQuery Style - 如何將元素的hover css屬性分配給其他一些元素

我們想知道如何將元素的hover css屬性分配給其他一些元素。

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.9.1.js'></script>
<script type='text/javascript'>
$(window).load(function(){
    $(function() {
       $('.abcClass').hover( function(){
          $(this).css('color', 'red');
       },
       function(){
          $(this).css('color', 'green');
       });
    });
});
</script>
</head>
<body>
  <a href="#" class="abcClass">Link To Something</a>
</body>
</html>