示例工程 07-backgrounds-borders-shadows

07-backgrounds-borders-shadows/demo-01-backgrounds/index.html

html · 0.6 KB

运行:背景与渐变

点击「运行示例」后,左侧显示源码、右侧显示运行结果;console 输出会实时回传。

<!doctype html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>背景与渐变</title>
    <link rel="stylesheet" href="style.css" />
  </head>
  <body>
    <h1>背景与渐变</h1>
    <div class="grid">
      <div class="tile linear"><span>linear-gradient</span></div>
      <div class="tile radial"><span>radial-gradient</span></div>
      <div class="tile pattern"><span>repeating-linear-gradient</span></div>
      <div class="tile position"><span>background-position</span></div>
    </div>
  </body>
</html>