js固定头后跨列的tr占了整行,怎么不让这个tr占整行然后回到原来位置

这是行头没有固定时的样子
img

这是固定行头时的样子
img

这是固定行头的cs代码


  table tbody {
    display:block;
    height:500px;
    overflow:scroll;
    width:100%;
  }


  table thead,tbody tr{
    width:100%;
    display:table;
    table-layout:fixed;
  }

  table thead {
    width: calc( 100% - 1em )
  }


这东西搞得真的难受

应该是合并的列没有设置对吧,再核对一下看看。