CSS多色条纹
双色与三色
div {
background-image: linear-gradient(red 33.3%, yellow 0);
background-size: 100% 30px;
}
div {
// 兼容性差点
// background-image: repeating-linear-gradient(45deg, black 0 15px, transparent 0 30px);
background-image: linear-gradient(red 33.3%, yellow 0, yellow 66.6%, blue 0);
background-size: 100% 30px;
}