【问题标题】:Make highlight table row without external library using JavaScript使用 JavaScript 在没有外部库的情况下突出显示表格行
【发布时间】:2014-12-23 05:40:24
【问题描述】:

是否有可能在没有外部 JS 库但仅使用 JavaScript 的情况下突出显示表格行?

<table>
<tr>
<th>Nom</th>
<th>n°</th>
</tr>
<tr class="item">
<td class="listeitem">Denis PAPIN</td>
<td class="listeitem">7</td>
</tr>
<tr class="item">
<td class="listeitem">Albert EINSTEIN</td>
<td class="listeitem">2</td>
</tr>
<tr class="item">
<td class="listeitem">Nikola TESLA</td>
<td class="listeitem">18</td>
</tr>
(…)
</table>

【问题讨论】:

  • 是的。这是可能的。祝你好运。

标签: javascript html-table highlight


【解决方案1】:

向要突出显示的行添加一个类?我们需要一些上下文。但是是的,这完全有可能

【讨论】:

  • 你能解释更多吗:小例子。
猜你喜欢
  • 1970-01-01
  • 2021-11-05
  • 2012-02-06
  • 1970-01-01
  • 2018-07-29
  • 2014-11-02
  • 2013-07-22
  • 2021-04-12
  • 2017-04-05
相关资源
最近更新 更多