阅读背景:

layui设置table的各种背景色

来源:互联网 

添加以下内容到指定CSS文件,并引入项目便可生效

/* 偶数行背风景 */
.layui-table[lay-even] tr:nth-child(even) {
    /* background-color: #aaffaa; */
    background-color: #eeffee;
}

/* 鼠标指向表格时,奇数行背景色彩 */
.layui-table tbody tr:hover,.layui-table-hover {
    background-color: #eeffee;
}

/* 表格头部工具栏背风景 */
.layui-table-tool {
    background-color: #eeffee;
}

/* 表格头部背风景 */
th {
    background-color: #359f6a; /* MediumSeaGreen */
    color: #fff;
    font-weight: bold
}/* 偶数行背风景 */
.layui



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: