CSS 文本属性综合示例
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;