表格隔行换色效果

$("tr").each(function(i){this.style.backgroundColor=['#ccc','#fff'][i%2]})

posted @ 2013-08-26 13:45  幸福就好  阅读(133)  评论(0编辑  收藏  举报