js实现表格隔行变色--与jQuery的对比

使用jquery则只须要jquery

$(function(){
$('#tbStu tr:nth-child(even)').addClass('trOdd');
})spa

复习    table表格blog

可选属性   border 规定表格边框的宽度io

                 cellpadding  规定单元边沿与其内容之间的空白table

                 cellspaceing 规定单元格之间的空白function

相关文章
相关标签/搜索