easyui使用技巧

一、自定義datagrid字體大小字體

經過formatter改變字體大小,而後在列中使用:spa

以下:code

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

二、經過rowStyler定義特殊列orm

$("tt").datagrid({
    title:'datagrid',
    rowStyler:function(){
        return "font-weight:bold;color:red;";    
    }
});
相關文章
相關標籤/搜索