【问题标题】:How to apply css to ngx-datatable checked row如何将 css 应用于 ngx-datatable 检查行
【发布时间】:2023-01-12 19:31:12
【问题描述】:

我试过了

.datatable-body-row:checked .datatable-row-group {
  background-color: #22e26c !important;
}

什么都没有发生,而对于悬停它有效,就像这样。

.datatable-body-row:hover .datatable-row-group {
  background-color: #abd4ee !important;
}

如何使选中的行具有自定义颜色? 谢谢你。

【问题讨论】:

    标签: css angular ngx-datatable


    【解决方案1】:

    您是否尝试使用 .datatable-body-row.active

    如果您查看他们的网站,您可以选择一行并查看开发工具以搜索应用的样式。

    https://swimlane.github.io/ngx-datatable/#single-selection

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-04-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-09-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多