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%'