2010-04-09 15:26 阅读 375

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

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

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

  • 已采纳
    chem_zqm 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
    text-align: center; //文字居中

    点赞 评论 复制链接分享