(007)jquery_同时选择多个节点

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
  <head>
    <title>f_html.html</title>
    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
    <style type="text/css">
        div{ width:200px;margin:5px;}
        .red{ border:2px solid Red; }
        .green{border:2px solid green; }
        .blue{border:2px solid blue;  }
    </style>
    <script type="text/javascript" src="../js/jquery/jquery190.js"></script>
    <script type="text/javascript">
        $(document).ready(function(){
            $(".red,.green").html("测试");
        });
    </script>
  </head>
  
  <body>
        <div class="red">选我吧!我是red</div>
        <div class="green">选我吧!我是green</div>
           <div class="blue">选我吧!我是blue</div>
  </body>
  
</html>

 

posted @ 2014-12-08 10:54  雪中飞雁  阅读(434)  评论(0)    收藏  举报