如何去除纳克格斑马条纹 [英] How to remove zebra striping from ng-grid

查看:128
本文介绍了如何去除纳克格斑马条纹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好像这应该是一件容易的事,但我没有找到它。一个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.

这篇关于如何去除纳克格斑马条纹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆