示例工程 40-layers
40-layers/demo-02-revert/index.html
点击「运行示例」后,左侧显示源码、右侧显示运行结果;console 输出会实时回传。
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>revert-layer</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<h1>revert-layer</h1>
<p>右键两个按钮,对比背景与文字。</p>
<div class="row">
<button class="btn" type="button">components 层</button>
<button class="btn revert" type="button">revert-layer</button>
</div>
<p class="hint">右侧回落到 base 层:灰底深字。</p>
</body>
</html>