Css 代码:
.my-custom-grid-red .x-column-header-inner {zoom: 1;position: relative;white-space: nowrap;line-height: 22px;padding: 0px 6px 12px 96px;background-color:red;}
.my-custom-grid-green .x-column-header-inner {zoom: 1;position: relative;white-space: nowrap;line-height: 22px;padding: 0px 6px 12px 96px;background-color:green;}
Extjs Grid gridcolumn 代码:
{ text: 'Nom du compte', flex: 1, sortable: true, dataIndex: 'name_account', baseCls:'my-custom-grid-red', width: 260 }, { text: 'Ville', sortable: true, dataIndex: 'ville', width: 200, baseCls:'my-custom-grid-green' }
把baseCls 改为 cls
转载于:https://blog.51cto.com/4925054/1397651