当我在一个单元格中选择表格时如何以一种不同的颜色突出显示行悬停 [英] How to highlight row hover in one different color when i select table in one cell
本文介绍了当我在一个单元格中选择表格时如何以一种不同的颜色突出显示行悬停的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在div中使用表格.这不是网格.这只是HTML标记.
我有"n"列和行数.当我滚动时,我看不到标题列和某些想要的第一列.
每当用户在表格中选择一个单元格时,我都希望用一种不同的颜色突出显示整个行.
I am using table with div. This is not Grid. it is just HTML tag.
i have "n" number of columns and rows. when i scroll i am unable to see the header column and some wanted first column.
I want to highlight the entire row in one different color whenever the user select one cell in table.
How to highlight this...?
推荐答案
使用Javascript
JavaScript提示:突出显示表格行 [突出显示表格单元格脚本 [
Use Javascript
JavaScript Tip: Highlight Your Table Rows[^]
Highlight Table Cells Script[^]
这篇关于当我在一个单元格中选择表格时如何以一种不同的颜色突出显示行悬停的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文