59 lines
1.1 KiB
HTML
59 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>获取元素</title>
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
padding: 32px;
|
|
font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
|
|
background: #f6f8fb;
|
|
}
|
|
|
|
.panel {
|
|
max-width: 760px;
|
|
margin: 0 auto;
|
|
padding: 24px;
|
|
border-radius: 20px;
|
|
background: #ffffff;
|
|
border: 1px solid #dbe3f0;
|
|
}
|
|
|
|
.cards {
|
|
display: grid;
|
|
gap: 12px;
|
|
margin-top: 18px;
|
|
}
|
|
|
|
.card {
|
|
padding: 16px;
|
|
border-radius: 14px;
|
|
background: #f8fbff;
|
|
border: 1px solid #dce8f8;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<section class="panel">
|
|
<h1 id="page-title">
|
|
<p>111</p> 获取元素练习
|
|
</h1>
|
|
<button class="start-btn" type="button">开始学习</button>
|
|
|
|
<div class="cards">
|
|
<article class="card">获取标题</article>
|
|
<article class="card">获取按钮</article>
|
|
<article class="card">获取一组卡片</article>
|
|
</div>
|
|
</section>
|
|
|
|
<script src="./starter.js"></script>
|
|
|
|
|
|
</body>
|
|
|
|
</html> |