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

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; //文字居中
    }

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

报告相同问题?

悬赏问题

  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大
  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序
  • ¥15 onvif+openssl,vs2022编译openssl64
  • ¥15 iOS 自定义输入法-第三方输入法
  • ¥15 很想要一个很好的答案或提示