Box Shadow on table row not appearing on certain browsers

后端 未结 9 1790
夕颜
夕颜 2020-11-27 18:44

CSS box-shadow on table rows - tr - doesn\'t seem to be working consistently across browsers. On some browsers the shadow is displayed; on others, there is no s

9条回答
  •  鱼传尺愫
    2020-11-27 18:46

    I've got an effect quite similar to box-shadow using filter and drop-shadow. It's a bit hacky and you'll need to find the best configuration of the shadow to match your scenario though.

    My original class:

    .project-row { 
       box-shadow: 0 0 15px 0 black;
    }
    

    My new class:

    .project-row { 
       filter: drop-shadow(0 0 9px black);
    }
    

    https://codepen.io/nico_nj/pen/XWbaZPJ

提交回复
热议问题