0

I have a table, with a pretty nice style. Td and th elements, on hover, change their background color. However, if there is a disabled element in that row, it still displays lighter colors than things with disabled elements in them should look. Does anyone know a way to change the hover background if there is a disabled element inside? I can use jQuery.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Tanner Ottinger
  • 2,970
  • 4
  • 22
  • 28

1 Answers1

0

I'd probably approach the problem by adding a class to the hovered item to modify its behavior when you disable child elements, as css won't let you set styles on a parent object based on properties of their children. Check out this post: Complex CSS selector for parent of active child

Community
  • 1
  • 1
A. Rager
  • 1,950
  • 2
  • 15
  • 16