elementUI table tr th 的高度,以及背景颜色

<style>
    /* 设置当前选中行的背景颜色 */
    .el-table__body tr.current-row>td {
        background: #c9eff5 !important;
    }
    /* 设置table header的背景颜色 */
    .el-table__header th, .el-table__header tr {
        background-color: #17B3A3;
        color: black;
    }
    /* 设置表主体的高度 */
    .el-table__body td,.el-table__body th{
        padding:3px;
    }
    /* 设置表头的高度 */
    .el-table__header td,.el-table__header th{
        padding:6px 0px;
    }
    /* 设置分页器的高度 */
    .site-wrapper .el-pagination {
        margin-top: 5px;
        text-align: right;
    }
    .el-pager li.active {
        color: #080909;
        cursor: default;
        background-color: #17B3A3;
        border-radius: 2px;
    }
</style>

猜你喜欢

转载自blog.csdn.net/qq_39940205/article/details/84578711