<!doctype html>
<html>
<title>用jQuery实现的隔行变色的效果</title>
<body>
<ul>
<li>我是今天</li>
<li>我是今天</li>
<li>我是今天</li>
<li>我是今天</li>
</ul>
<script type="text/javascript" class="lazyload" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC" data-original="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>
共同学习,写下你的评论
评论加载中...
作者其他优质文章