添加以下内容到指定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