【发布时间】:2017-09-21 14:32:04
【问题描述】:
在此表中,目标是在单击“待处理”或“已完成”按钮时突出显示所选单选上的行。突出显示颜色将对应于单击的按钮。到目前为止,我只学习了如何在选择行时突出显示该行。
<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;
}
【问题讨论】:
-
高亮选中行的代码在哪里?
标签: javascript css html-table highlight