为了让table具有更好的可读性,我们可以将表格的header信息克隆一份到表格的底部,这种特效通过JQuery就很容易实现:
文章地址https://www.yii666.com/article/758209.html 网址:yii666.com文章来源地址:https://www.yii666.com/article/758209.html
1
2
3
4
5
|
var $tfoot = $( '' );
$($( 'thead' ).clone( true , true ).children().get().reverse()).each( function (){
$tfoot.append($( this ));
}); $tfoot.insertAfter( 'table thead' );
|