CSS 文本属性综合示例

CSS 文本属性1 个文件更新于 2026-04-06
html公开前 25 行,完整代码需登录
<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>CSS 文本属性综合示例</title>
  <style>
    body {
      font-family: "Microsoft Yahei", Arial, sans-serif;
      line-height: 1.6;
    }

    h1 {
      font-size: 32px;
      font-weight: 700;
      color: #333;
      text-align: center;
      margin-bottom: 30px;
      text-transform: uppercase;
      letter-spacing: 3px;
    }

    h2 {
      font-size: 24px;
      font-weight: 600;

登录后可以查看完整源码、在线编辑并实时预览运行效果。