【发布时间】:2017-04-04 21:12:09
【问题描述】:
我有
一张桌子
我想要
设置表格特定行的特定 td 样式。
我决定了
要遍历每个row,在每一行中,我会遍历每个td,并检查td 是否等于我要检查的那个。
我试过了
$('#account-table').each(function () {
$(this).find('td').each(function () {
var td = $(this);
if(td.innerText == 'vazogaxan@hotmail.com'){
$(this).css('color','red');
}
});
});
我明白了
我无法将该列文本设为红色。
任何提示/建议?
【问题讨论】:
标签: jquery css html-table