zoukankan      html  css  js  c++  java
  • 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>
    

      

      



  • 相关阅读:
    洛谷 P4484
    洛谷 P4900
    Codeforces 1500D
    Codeforces 1322D
    2021.9.30 Codeforces 中档题四道
    BZOJ 3729
    洛谷 P6276
    Codeforces 1511G
    C语言 typedef
    C语言 回调函数 callback
  • 原文地址:https://www.cnblogs.com/myfate/p/11078397.html
Copyright © 2011-2022 走看看