How to make table row fixed at the top

前端 未结 5 606
梦谈多话
梦谈多话 2020-12-17 16:24

I have a table without th elements, Only td elements are there. Is there any way to make My first row fixed(label). The table is like this

5条回答
  •  难免孤独
    2020-12-17 16:47

    Use of data table we can fixed the header and footer also. Find the below Code......

    tbl_Purcordr=$("#tbl_Purcordr").DataTable({
      'paging': true,
      'pageLength': 25,
      'bLengthChange': false,
      'sorting': false,
      'filter': true,
      'info': false,
      'scrollY': 360,
      'background': 'none',
      'fixedHeader': {
        'header': true,
        'footer': true
      }
    });
    

提交回复
热议问题