示例工程 35-landing-page
35-landing-page/demo-02-sections/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>落地页区块演示</title>
<style>
body { margin: 0; padding: 32px; background: #f8fafc; color: #0f172a; font-family: system-ui, sans-serif; line-height: 1.7; }
.box { max-width: 760px; margin-bottom: 16px; padding: 18px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
h1 { margin: 0 0 16px; font-size: 28px; }
h2 { margin: 0 0 8px; font-size: 21px; }
h3 { margin: 0 0 6px; font-size: 16px; }
p { margin: 0 0 10px; color: #334155; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.cards li { padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
caption { padding: 6px 8px; text-align: left; color: #475569; font-size: 13px; }
th, td { padding: 8px 10px; border-bottom: 1px solid #e2e8f0; text-align: left; }
thead th { background: #f1f5f9; }
blockquote { margin: 0; padding: 10px 12px; border-left: 3px solid #2563eb; background: #eff6ff; color: #1e3a8a; }
blockquote p { margin: 0; color: inherit; }
figcaption { margin-top: 6px; color: #64748b; font-size: 13px; }
details { margin: 8px 0; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px; }
summary { cursor: pointer; font-weight: 600; }
</style>
</head>
<body>
<h1>落地页区块</h1>
<div class="box">
<h2>功能</h2>
<ul class="cards">
<li><h3>预览部署</h3><p>每个分支一个地址。</p></li>
<li><h3>一键回滚</h3><p>几秒切回上一版。</p></li>
</ul>
</div>
<div class="box">
<h2>价格</h2>
<table>
<caption>方案对比(月付)</caption>
<thead><tr><th scope="col">方案</th><th scope="col">价格</th></tr></thead>
<tbody>
<tr><th scope="row">基础</th><td>0</td></tr>
<tr><th scope="row">团队</th><td>99</td></tr>
</tbody>
</table>
</div>
<div class="box">
<h2>评价</h2>
<figure>
<blockquote><p>发布压力小了很多。</p></blockquote>
<figcaption>—— <cite>林小满</cite></figcaption>
</figure>
</div>
<div class="box">
<h2>常见问题</h2>
<details open>
<summary>支持哪些框架?</summary>
<p>任何静态输出都可以。</p>
</details>
</div>
</body>
</html>