做表格隔行变色(高亮显示),可以通过设置css中的 tr:hover伪类属性达到效果,

但是,会出一点小问题。td的背景色会覆盖tr的背景色,

  在tr:hover下边加上一句:tr:hover td{background:none;}

    .dataTable tr:hover
     {
         background:#gray;
         } 
     
    .dataTable tr:hover td {background:none;}

  

相关文章:

  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-02
  • 2021-09-03
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-21
  • 2021-09-29
  • 2022-12-23
  • 2022-02-24
  • 2021-09-27
  • 2022-12-23
  • 2021-07-08
相关资源
相似解决方案