1.效果图
2.代码
/* 奇数行的样式 */
.list:nth-child(odd) > .rows {
background: #99d0e7;
width: 100%;
display: flex;
}
/* 偶数行的样式 */
.list:nth-child(even) > .rows {
background: #899196;
width: 100%;
display: flex;
}
1.效果图
2.代码
/* 奇数行的样式 */
.list:nth-child(odd) > .rows {
background: #99d0e7;
width: 100%;
display: flex;
}
/* 偶数行的样式 */
.list:nth-child(even) > .rows {
background: #899196;
width: 100%;
display: flex;
}