📜  重复线性渐变 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:31.109000             🧑  作者: Mango

代码示例1
body {
  background-image: repeating-linear-gradient(-45deg,
      transparent,
      transparent 20px,
      black 20px,
      black 40px);
  /* with multiple color stop lengths */
  background-image: repeating-linear-gradient(-45deg, 
      transparent 0 20px, 
      black 20px 40px);
}