<!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>