CSS 函数 repeating-radial-gradient() 的用法

cssweb developmentfront end technology更新于 2025/7/16 23:08:17

使用 repeating-radial-gradient() 函数可重复径向渐变。

示例

您可以尝试运行以下代码,在 CSS 中实现 repeating-radial-gradient() 函数 −

<!DOCTYPE html>
<html>
   <head>
      <style>
         #demo {
            height: 300px;
            background: repeating-radial-gradient(green 20%, orange 40%, maroon 40%);
         }
      </style>
   </head>
   <body>
      <p>Repeating radial gradient</p>
      <div id = "demo"></div>
   </body>
</html>

相关文章


有用资源