【发布时间】:2016-02-16 15:44:08
【问题描述】:
我正在使用 kendo 数据网格,其中我对标题文本有小问题,一些标题标签的文本很长,因为标题文本看起来不太好,因为 headerAttributes 我正在使用换行符并使标题变大所以小文本没有正确对齐。有没有办法将所有标题放在顶部,以便看起来一致?
gridConfig.js
columns : [
{
field : '',
title : 'Action',
width: '80px'
},
}, {
field : 'riskAssessmentChallengeKey',
title : 'Challenge ID',
width: '100px',
headerAttributes: {
style: 'height: auto; white-space: normal'
}
},
{
field : 'createWorkerText',
title : 'Created By',
width: '120px',
headerAttributes: {
style: 'height: auto; white-space: normal'
}
},
]
【问题讨论】:
标签: javascript css kendo-grid