解决办法: cell-style和header-cell-style属性要写在style前面
<el-table :data="tableData" :cell-style="{'text-align':'center'}" :header-cell-style="{'text-align':'center'}" style="width:100%" >