UI_GRID可扩展网格更改行颜色

时间:2015-06-09 20:11:36

标签: css angular-ui-grid

如何更改可扩展网格的行颜色?

我将它用于主网格,效果很好。

.ui-grid-row:nth-child(odd) .ui-grid-cell {
  background-color: #E3E3E3; !important;
}
.ui-grid-row:nth-child(even) .ui-grid-cell {
  background-color: #FFF; !important;
}

但这不是被子网格接收的。

由于

1 个答案:

答案 0 :(得分:2)

在挖掘时发现这一点 解决了我的问题。

  .expandableRow .ui-grid-row:nth-child(odd) .ui-grid-cell {
   background-color: #E3E3E3;
 }

 .expandableRow .ui-grid-row:nth-child(even) .ui-grid-cell {
   background-color: #FFF;
 }
相关问题