jquery的奇偶行
摘要:
even 代表偶数行odd代表奇数行示例:js:$(document).ready(function(){ $("table tr").eq(0).addClass("sh"); $("table tr:even:gt(0)").addClass("even"); $("table tr:odd").addClass("odd"); });css:.even{ background-color:Red;}.odd{ background-color:#f1f1f1;}.sh{ 阅读全文
posted @ 2014-04-09 09:28 贵梅之爱 阅读(453) 评论(0) 推荐(0) 编辑