码迷,mamicode.com
首页 > 其他好文 > 详细

layui 数据table隐藏表头

时间:2019-06-24 10:43:32      阅读:701      评论:0      收藏:0      [点我收藏+]

标签:css   font   字体   完成   table   pre   页码   表头   top   

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

 

layui 数据table隐藏表头

标签:css   font   字体   完成   table   pre   页码   表头   top   

原文地址:https://www.cnblogs.com/wiggin-Z/p/11075682.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!