标签:border css color 表格 else top last rto ast
if($(‘.p03-s2‘).find(‘table‘).length >= 2) {
$(‘table:last-child‘).css({
‘borderTop‘: ‘none‘
});
}
if($(‘.p03-s2‘).find(‘th‘).length) {
$(‘thead‘).css({
‘backgroundColor‘ : ‘#edf0f2‘
});
$(‘tbody‘).css({
‘backgroundColor‘ : ‘#fff‘
});
} else {
$(‘tbody‘).css({
‘backgroundColor‘ : ‘none‘
});
$(‘tr:even td‘).css({
‘backgroundColor‘ : ‘#edf0f2‘,
‘color‘: ‘#808080‘
});
$(‘tr:odd‘).css({
‘backgroundColor‘ : ‘#fff‘,
‘color‘: ‘#333‘
});
}
标签:border css color 表格 else top last rto ast
原文地址:https://www.cnblogs.com/gduf/p/11679343.html