示例工程 49-postcss-build

49-postcss-build/demo-02-fallbacks/index.html

html · 0.5 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>
    <p>先旧后新,旧浏览器才有值可用。</p>

    <div class="row">
      <div class="box hex-first">hex → oklch</div>
      <div class="box oklch-first">oklch → hex</div>
    </div>

    <div class="box supports">@supports 增强</div>
  </body>
</html>