我有一张表格,可以根据情况更改单元格。是否可以在相同条件下突出显示行?
请在代码下方找到。我可以更改它以将css代码用于悬停单元格但永久的
$cellvalue = "" . number_format($row[12],0, $decimal_point,"") . "";
$cbchecked = "checked";
if ($cellvalue <> "1") {
$cbchecked = "";
}
$cellvalue = "<input type=\"checkbox\" onclick=\"return false\" value=\"1\" " . $cbchecked . ">";
print "<td align=Default ><span id=\"alan_1_invs_value_".$rowcount."\"";
if ( (int)$cellvalue > 0 )
print " style=\" color:#FF0000; font-style:normal; font-weight:bold\"";
print ">";
print $cellvalue."</span></td>";
$intColCount++;
$intColIndex = 49;
这是CSS参考
}.TrHover { background-color: #00FF00;; color: #000000;;
font-family: Trebuchet MS;
font-size: 9pt;
text-align: left;