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;";
}
});
原文:http://www.cnblogs.com/tyb1222/p/4414930.html