elementUI
table
组件在Windows
系统,Google
浏览器出现表头的边框和内容的边框错位问题css
把这样式添加到index.html
中、或者app.vue
中(必须是入口文件,才能全局起做用!)html
body .el-table th.gutter{ display: table-cell!important; }
注:在个人项目中有一个项目用这个方法能解决,另一个项目不能解决。。。采用的方法二vue
.el-table--border th.gutter:last-of-type { display: block!important; }
在el-table
组件挂载一个ref="configurationTable"
,而后在每次请求数据成功后动一动表格的默认宽度浏览器
this.$refs.configurationTable.$el.style.width = '99.99%'