页面如下图
![在这里插入图片描述](https://img-blog.csdnimg.cn/20210322220242120.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L211cml5dWU2,size_16,color_FFFFFF,t_70)
解决办法一
将以下样式代码添加到index.html或app.vue中的style标签中
<style>
body .el-table th.gutter{
display: table-cell!important;
}
</style>
解决办法二
自己定义一个common.css文件,在文件中将下面样式引入
body .el-table th.gutter{
display: table-cell!important;
}
在main.js文件中引入common.css文件
import '@/style/common.css'
修改后的结果
![在这里插入图片描述](https://img-blog.csdnimg.cn/20210322222213546.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L211cml5dWU2,size_16,color_FFFFFF,t_70)