用jQuery实现的隔行变色效果
<!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>
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。