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渲染完成之后回调函数之中执行此行代码即可隐藏表头

 

posted @ 2019-06-24 10:21  wiggin  阅读(8843)  评论(0编辑  收藏  举报