easyui使用技巧

1、自定义datagrid字体大小

通过formatter改变字体大小,然后在列中使用:

如下:

function formatFontSize(value){
    return'<span style="font-size:16px;">'+value+'</span>'
}

2、通过rowStyler定义特殊列

$("tt").datagrid({
    title:'datagrid',
    rowStyler:function(){
        return "font-weight:bold;color:red;";    
    }
});

 

posted @ 2015-04-10 16:04  tyb1222  阅读(626)  评论(0编辑  收藏  举报