简体   繁体   English

突出显示单个动态表格行背景色

[英]Highlight A Single Dynamic Table Row Background Color

I am trying to figure out how to highlight one single row from a dynamic table using PHP or whatever needed to achieve this. 我试图弄清楚如何使用PHP或从实现此功能所需的任何内容中突出显示动态表中的一行。 Basically I have a championship table and I want to highlight out the client's team from the others 基本上我有一个冠军桌,我想从其他人中突出客户的团队

Any help please? 有什么帮助吗?

write a if condition 写一个if条件

if(client's team)
{
echo "<tr style='background-color:red'><td> data</td></tr>";
}
else{
    echo "<tr><td>data</td></tr>";
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM