如何去除纳克格斑马条纹

如何去除纳克格斑马条纹

问题描述:

好像这应该是一件容易的事,但我没有找到它。一个NG-网格斑马默认情况下,我怎么删除它条纹?

Seems like this should be an easy thing to do, but I'm not finding it. An ng-grid is zebra striped by default, how do I remove it?

添加到您的风格覆盖斑马 CSS:

Add this to your style to override the zebra css:

<style>
    .ngRow.even {
        background-color: rgb(255, 255, 255);
    }
    .ngRow.odd {
        background-color: rgb(255, 255, 255);
    }
</style>

这将使两行白色。将其更改为任何你需要的颜色。

This will make both rows white. Change it to whatever color you need.