为了让table具有更好的可读性,我们可以将表格的header信息克隆一份到表格的底部,这种特效通过JQuery就很容易实现:

1
2
3
4
5
var $tfoot = $('');
$($('thead').clone(true, true).children().get().reverse()).each(function(){
    $tfoot.append($(this));
});
$tfoot.insertAfter('table thead');

相关文章:

  • 2022-12-23
  • 2021-06-25
  • 2022-12-23
  • 2021-08-16
  • 2022-12-23
  • 2021-08-23
  • 2021-09-07
猜你喜欢
  • 2021-08-04
  • 2021-09-19
  • 2021-12-23
  • 2021-10-03
  • 2022-02-03
  • 2022-12-23
相关资源
相似解决方案