更改名称为table的class
将table-layout属性设置为fixed
.table{
table-layout: fixed;
}
js中初始化表格时,在columns中指定width属性
columns: [
{
field: 'id',
title: 'id',
align: 'center', // 左右居中
valign: 'middle', // 上下居中
width:50,
}
]