1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
| @font-face { font-family: 'LXGWWenKai'; src: url() format(); font-display: swap; } // 全文 body { font-family: 'LXGWWenKai', 'Noto Serif SC', 'Microsoft YaHei', sans-serif; } .post-body { font-family: 'LXGWWenKai', 'Noto Serif SC', 'Microsoft YaHei', sans-serif; }
// 针对标题的额外覆盖 h1, h2, h3, h4, h5, h6, .post-title, .post-title a, .post-header, .post-body h1, .post-body h2, .post-body h3, .post-body h4, .post-body h5, .post-body h6 { font-family: 'LXGWWenKai', sans-serif !important; }
// 设置字体到所有相关标题和元信息区域 .post-title, .post-meta, .post-meta span, .post-meta time, .post-header, .post-header span { font-family: 'LXGWWenKai', sans-serif !important; }
|