#box {
width: 200px;
height: 200px;
border: 1px solid red;
background: linear-gradient(45deg, black, red);
}

#box {
width: 200px;
height: 200px;
border: 1px solid red;
background: repeating-linear-gradient(45deg, black 0, red 25%, blue 50%);
}

网友评论