jquery easyui datagrid 更改表格标题,行间距和文字大小


<div  id="table">
    <table id="order"></table>
</div>

$("#order").datagrid({
    iconCls : 'icon-edit',
        fitColumns:true,//填充
        fit : true,//自适应
        pageSize : 20,//每页显示的记录条数,默认为10  
        style : {
            padding : '8 8 10 8'
        },
        singleSelect : true,
        method : 'get',
        url : '',
        onLoadError : function() {
            alert("提示信息", "数据信息错误");
            return;
        },
        loadMsg :null,
        pagination : true,
        rownumbers : true,
        title : "",
        //sortOrder:'desc',
        nowrap:false,
        columns : [ [ {
            field : 'time',
            title : '',
            align : 'center',
            width : 250,
            formatter: 
                function(value,row,index){
                            return '<span style="font-size:20px">'+value+'</span>';//改变表格中内容字体的大小
                }   
        }
         ] ]
    });

更改样式如下:

<style>
//更改表格标题文字大小
.datagrid-header span {     font-size: 20px !important; }  .datagrid-header-row {     /* background-color: #e3e3e3; */     /* color: #111 */     Height: 50px; }

//更改表格中单元格行间距
#table .datagrid-btable tr{height: 35px;}

//更改表格标题的行间距
.panel-title {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 30px;
    color: inherit;
}
</style>

仅供参考..songsong…2016.9.28

  • 4
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值