element-ui的table表格控件表头与内容列不对齐问题


原文链接:点我

element-ui的table表格控件表头与内容列不对齐问题


解决方法
将以下样式代码添加到index.html、或app.vue中(必须是入口文件,起全局作用!)
body .el-table th.gutter{
display: table-cell!important;
}

例如(app.vue):

<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
  export default{
     name: 'APP'
  }
</script>

<style>
  /* 解决element-ui的table表格控件表头与内容列不对齐问题 */
  .el-table th.gutter{
    display: table-cell!important;
  }
</style>

<style lang="scss">
  @import './styles/index.scss'; // 全局自定义的css样式
</style>

  

  




免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM