Box Shadow on table row not appearing on certain browsers

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

    Now, in v53 Chrome it fixed and box-shadow work fine for !

    CSS / HTML / Demo

    table {
      border-spacing: 0 10px;
      border-collapse: separate;
    } 
    tbody {
      display: table-row-group;
      vertical-align: middle;
    }
    tr {
      margin-bottom: 9px;
    }
    tr:hover {
          box-shadow: 0 5px 8px 0 rgba(50, 50, 50, 0.35);
        -webkit-box-shadow: 0 5px 8px 0 rgba(50, 50, 50, 0.35);
        -moz-box-shadow: 0 5px 8px 0 rgba(50, 50, 50, 0.35);
    }
    Optional table caption.
    # First Name Last Name Username
    1 Mark Otto @mdo
    2 Jacob Thornton @fat
    3 Larry the Bird @twitter

提交回复
热议问题