문제

I want to change the background-color for a tr on hover, is there a way to select the rows thats going to be affected by that? At this point I'm using

tr:hover td{background:#EDEDED;}

But this changes the backcolor on every tr on my page. Is there a way to make the changes only apply for a tr with example class="change_on_over"

도움이 되었습니까?

해결책

tr.change_on_over:hover td { background:#EDEDED; }
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top