Zyoi

/* ========= 全局字号(电脑16px/手机15px) ========= */
html {
font-size: 16px;
}
@media (max-width: 768px) {
html {
font-size: 15px;
}
}

/* ========= 让所有元素默认楷体(强制覆盖) ========= */

  • {

font-family: "楷体", "KaiTi", "华文楷书", "STKaiti", serif !important;
}

/* ========= 把“正文里的纯文本内容”恢复为系统默认字体 ========= */
/* 针对 Wikidot 的正文容器 .page-content 内的段落、列表、表格等 */
.page-content p,
.page-content li,
.page-content td,
.page-content th,
.page-content dd,
.page-content dt,
.page-content figcaption,
/* 有些正文直接写在 div 里但没有标签,用这个兜底 */
.page-content > div:not(.page-title):not(.breadcrumbs),
/* 同时排除标题和特殊区块 */
.page-content span:not(.page-title) {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* ========= 但是正文里的所有标题(h1-h6)必须保持楷体 ========= */
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6,
.page-content .page-title {
font-family: "楷体", "KaiTi", "华文楷书", "STKaiti", serif !important;
}

/* ========= 侧边栏、页脚、顶部栏等非正文区域保持楷体 ========= */
/* Wikidot 常见侧边栏 ID/class */
#side-bar,
#footer,
#header,
.top-bar,
.action-bar,
#page-title,
.breadcrumbs {
font-family: "楷体", "KaiTi", "华文楷书", "STKaiti", serif !important;
}

/* ========= 行距加宽(只对正文内容生效) ========= */
.page-content p,
.page-content li,
.page-content td,
.page-content th {
line-height: 1.7;
}
正文部分 测试001

除非特别注明,本页内容采用以下授权方式: Creative Commons Attribution 3.0 License