示例工程 02-first-stylesheet

02-first-stylesheet/demo-01-three-ways/style.css

css · 0.4 KB

运行:三种引入方式

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

body {
  margin: 0;
  padding: 32px;
  background: #f8fafc;
  color: #0f172a;
  font-family: system-ui, sans-serif;
  line-height: 1.7;
}

h1 {
  margin: 0 0 6px;
  font-size: 28px;
}

.box {
  margin-top: 10px;
  padding: 12px 14px;
  border: 2px solid #2563eb;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 600;
}

.hint {
  margin-top: 16px;
  color: #64748b;
  font-size: 13px;
}