0
点赞
收藏
分享

微信扫一扫

设置element ui table表格线条颜色以及设置圆角/解决element ui table设置圆角后线条不显示或显示模糊问题,亲测有效

小北的爹 2022-04-13 阅读 96

问题描述

table表格设置为圆角后并且设置table border颜色,设置圆角后导致修改颜色后的border无法显示

问题解决

/* 设置圆角以及边框颜色 */
        .el-table{
            border-radius: 0 0 10px 10px;
            border-top:1px solid #DEDEDE;
            border-left:1px solid #DEDEDE;
            border-bottom:1px solid #DEDEDE;
        }

        .el-table th.is-leaf {
            border-bottom: 1px solid #DEDEDE!important;
        }

        .el-table td, .el-table th.is-leaf {
            border-bottom: 0;
        }

        .el-table__body-wrapper{
            border-right: 0;
            border-bottom: 0;
        }


        .el-table td, .el-table th.is-leaf,.el-table--border, .el-table--group{
            border-color: #DEDEDE; 
        }
        .el-table--border::after, .el-table--group::after, .el-table::before{
            background-color: transparent;
        }
举报

相关推荐

0 条评论