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

easyui使用技巧

时间:2015-04-10 17:17:06      阅读:157      评论:0      收藏:0      [点我收藏+]

标签:

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;";    
    }
});

 

easyui使用技巧

标签:

原文地址:http://www.cnblogs.com/tyb1222/p/4414930.html

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