Box Shadow on table row not appearing on certain browsers

后端 未结 9 1764
夕颜
夕颜 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:49

    in react, i have combined the answer as below. It worked fine in chrome, >firefox, ie11

    .select_row{
        color: #43B149;
        font-weight: bolder !important;
        background: #e4e5e6 !important;
        box-shadow: 1px 0px 1px 0px #cad6ce !important;
        -moz-box-shadow:1px 0px 1px 0px #cad6ce !important;
        -webkit-box-shadow:1px 0px 1px 0px #cad6ce !important;
        transform: scale(1);
        -webkit-transform: scale(1);
        -moz-transform: scale(1);
        -ms-transform: scale(1);
        td{box-shadow: 0px 3px 0px 0px #cad6ce !important;
            -moz-box-shadow:0px 3px 0px 0px #cad6ce !important;
            -webkit-box-shadow:0px 3px 0px 0px #cad6ce !important;
            background: #e4e5e6 !important;
        }
    }
    .table-forecast{
        border-collapse: separate;
        border-spacing: 0px;
    }
    

提交回复
热议问题