background-size 的值颠.box{ width: 230px; height: 160px; background: linear-gradient(to right, /* 或 90deg */ #fb3 50%, #58a 0); background-size: 30px 100%; }