在header属性设置相应列的cellStyle的css风格:如
<textarea cols="50" rows="15" name="code" class="javascript">[{ "id" : "code", "width" : 100, "type" : "label", "caption" : "商铺编号" }, { "id" : "wyname", "width" : 130, "type" : "label", "caption" : "所属物业" }, { "id" : "lyname", "width" : 120, "type" : "label", "caption" : "所属楼宇" }, { "id" : "address", "width" : 150, "type" : "label", "caption" : "地址" }, { "id" : "loucheng", "width" : 80, "type" : "label", "caption" : "楼层", "cellStyle" : "text-align:center;" }, { "id" : "unitprice", "width" : 80, "type" : "label", "caption" : "单位租金", "hidden" : false, "cellStyle" : "text-align:center;" }, { "id" : "area", "width" : 80, "type" : "label", "caption" : "面积", "hidden" : false, "cellStyle" : "text-align:center;" }, { "id" : "monthmoney", "width" : 80, "type" : "label", "caption" : "月租金", "cellStyle" : "text-align:right;" }, { "id" : "statue", "width" : 80, "type" : "label", "caption" : "状态", "hidden" : false, "cellStyle" : "text-align:center;" }, { "id" : "remark", "width" : 180, "type" : "label", "caption" : "备注" }, { "id" : "id", "width" : 80, "type" : "label", "caption" : "id", "hidden" : true }, { "id" : "wyid", "width" : 150, "type" : "label", "caption" : "物业编号", "hidden" : true }, { "id" : "lyid", "width" : 80, "type" : "label", "caption" : "楼宇编号", "hidden" : true }]</textarea>