【发布时间】:2014-01-21 04:56:29
【问题描述】:
我需要使用 jquery 或 php 突出显示整行。有什么办法吗?或者请给我建议?
这是我正在处理的代码:
<table id ="gdRows" class="table table-bordered">
<tr class="info">
<td><input type='checkbox' id="selectall" onclick = "selectAll(this)"></td>
<td><strong>Username</strong></td>
<td><strong>Password</strong></td>
</tr>
<?php
for($i=0; $row = $qry->fetch(); $i++){
$username = $row['username'];
$password = $row['password'];
?>
<tr class="success">
<td><input type="checkbox" name="chkDelete" ></td>
<td><?php echo $username; ?></td>
<td><?php echo $password; ?></td>
</tr>
<?php
}
?>
</table>
【问题讨论】:
-
你的意思是高亮效果,它高亮然后恢复正常?还是背景色?
-
您好,感谢您的快速回复。但它不起作用。
-
如果勾选复选框,它将改变背景颜色。就像在雅虎邮件中一样。