weixin_42362690 2010-04-09 15:26
浏览 412
已采纳

Extjs gridpanel的单元格的数据怎么居中显示?

Extjs gridpanel的单元格的数据怎么居中显示?

  • 写回答

1条回答 默认 最新

  • chem_zqm 2010-04-09 16:02
    关注

    In both examples above, the ability to apply a CSS class to all cells in a column (including the header) is demonstrated through the use of the id config option. This column could be styled by including the following css:

    .x-grid3-td-company {
    color: red; // entire column will have red font
    }
    摘自Ext的官方API Class:Ext.grid.ColumnModel
    其实就是根据ID添加个样式
    .x-grid3-td-{列ID}{
    text-align: center; //文字居中
    }

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?