layui 数据table隐藏表头

$('.layui-table .layui-table-cell > span').css({'font-weight': 'bold'});//表头字体样式
                /*$('th').css({'background-color': '#5792c6', 'color': '#fff','font-weight':'bold'}) 表头的样式 */
                $('th').hide();//表头隐藏的样式
                $('.layui-table-page').css('margin-top','40px');//页码部分的高度调整

在数据table渲染完成之后回调函数之中执行此行代码即可隐藏表头

猜你喜欢

转载自www.cnblogs.com/wiggin-Z/p/11075682.html