用jQuery实现的隔行变色效果
更新:HHH   时间:2023-1-7


<!doctype html>
<html>
       <title>用jQuery实现的隔行变色的效果</title>
       <body>
               <ul>
                       <li>我是今天</li>
                       <li>我是今天</li>
                       <li>我是今天</li>
                       <li>我是今天</li>
               </ul>
               <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
               <script type="text/javascript">
                       debugger;
                       $("ul li").css("background","blue");
                       $("ul li:even").css("background","red");
               </script>
       </body>
</html>

返回web开发教程...