I do not want to inherit the child opacity from the parent in CSS

前端 未结 14 1174
猫巷女王i
猫巷女王i 2020-11-21 06:31

I do not want to inherit the child opacity from the parent in CSS.

I have one div which is the parent, and I have another div inside the first div which is the child

14条回答
  •  孤街浪徒
    2020-11-21 06:59

    For other people trying to make a table (or something) look focused on one row using opacity. Like @Blowski said use color not opacity. Check out this fiddle: http://jsfiddle.net/2en6o43d/

    .table:hover > .row:not(:hover)
    

提交回复
热议问题