我有一个剑道网格,我正在使用footerTemplate来查找网格中值的总和。我已成功对齐网格中列的值。我的问题是如何对齐footerTemplate中的值以下是我使用的代码{field:"covered_amount",width:"150px",title:"Covered",sortable:false,attributes:{style:"text-align:right;"},footerTemplate:"#=sum#"},非常感谢任何帮助。 最佳答案 将页脚模板定义为:footerTemplate:"#=sum#"或: