Skip to content

Instantly share code, notes, and snippets.

@lazydao
Last active May 28, 2024 09:35
Show Gist options
  • Save lazydao/adb69103d9c88ef89a25c6490e606aab to your computer and use it in GitHub Desktop.
Save lazydao/adb69103d9c88ef89a25c6490e606aab to your computer and use it in GitHub Desktop.
CSS
/* 引入思源黑体和思源宋体 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;700&family=Noto+Serif+SC:wght@400;700&display=swap');
.document-content p,
.document-content body,
.document-content span,
.document-content ul li,
.document-content div {
font-family: 'Noto Serif SC', serif !important;
}
.document-content h1,
.document-content h2,
.document-content h3 {
font-family: 'Noto Sans SC', sans-serif !important;
}
  • 颜色:"black" = "#000000" = "#000" = rgb(0, 0, 0)
  • style 优先级:!important > inline styles > id > class > 声明更前的class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment