Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternate row color in rc-table only works on hover! #997

Open
zwjsoft opened this issue Jun 8, 2023 · 0 comments
Open

Alternate row color in rc-table only works on hover! #997

zwjsoft opened this issue Jun 8, 2023 · 0 comments

Comments

@zwjsoft
Copy link

zwjsoft commented Jun 8, 2023

I'm using the rc-table component to display a table with alternate row colors. However, the background color of even rows only takes effect when I hover over them with the mouse. I've tried adding the CSS code table tr:nth-child(even) { background: #CCE8E8; }, but it doesn't seem to be working as expected.、
Can someone help me figure out why the even rows' background color only works on hover? Thank you!
CSS:
.rc-table table tr:nth-child(even){background:#CCE8E8!important;}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant