Elementor表格统一样式设置

Elementor表格统一样式设置

样式一效果:

样式Css


.wp-block-table tr:nth-child(2n){
background: #e5e5e5;
}

.wp-block-table table td {
border: 1px solid var(–ast-border-color);
}

.wp-block-table table tr:first-child {
background-color: var( –e-global-color-primary );
}

.wp-block-table table tr:first-child td {
color: #fff;
}

样式二效果


/*
pro-cate-label为自定义类样式,编辑器中选中指定的元素,高级添加pro-cate-label即可附加下面两行的样式, 效果如上图TECHNICAL DATA文本样式
*/
h4.pro-cate-label {
    position: relative;
    display: inline-block;
    font-size: 24px;
    color: #006bae;
    /* line-height: 1.5; */
    margin-top: 20px;
    margin-bottom: 12px;
    text-transform: capitalize;
    padding-left: 15px;
    width: 100%;
    padding-bottom: 15px;
    border-bottom: 1px solid #dddddd;
    font-weight: 700;
}

h4.pro-cate-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 24px;
    background: #006bae;
}

.wp-block-table table td {
    border: 1px solid var(--ast-border-color);
}

/* pro-cate-label类样式结束 */

.wp-block-table table tr:first-child {
    background-color: #006bae;
}

.wp-block-table table tr:first-child:hover {
    background-color: #006bae;
}

.wp-block-table table tr:first-child td {
    color: #fff;
}

.wp-block-table table tr {
    transition: all .3s;
}

.wp-block-table table {
    background-color: #fff;
    width: 100%;
    margin: 10px 0;
    border-collapse: collapse;
    border-spacing: 0;
}

.wp-block-table table tr:hover {
    background: #e2e2e2;
}.wp-block-table  tr:nth-child(2n){
    background: #e5e5e5;
}

.wp-block-table table tr:first-child {
    background-color: var( --e-global-color-primary );
}

.wp-block-table table tr:first-child td {
    color: #fff;
}

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注