0
在此表中,我們的目標是要突出對選定廣播行時的「待定」或「成就」按鈕被點擊。高亮顏色將對應於點擊的按鈕。到目前爲止,我只知道如何在選中該行時突出顯示該行。
<table id="maintenance_table" class="table table-striped table-bordered" cellpadding="0" width="100%">
<thead>
<tr>
<th></th>
<th>#</th>
<th>Complex</th>
<th>Unit#</th>
<th>Date Requested</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row"><input type="radio" class="radioBtn" name="selectRow" value="checked" /></th>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
我的CSS納入高亮色彩
.highlight_row_pending {
background-color: #DCAC61;
}
.highlight_row_accomp {
background-color: #67A8DA;
}
哪裏是你的突出所選行代碼? – hungerstar