$('.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渲染完成之后回調函數之中執行此行代碼即可隱藏表頭