惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
V
Visual Studio Blog
P
Privacy International News Feed
月光博客
月光博客
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
L
Lohrmann on Cybersecurity
N
News and Events Feed by Topic
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Apple Machine Learning Research
Apple Machine Learning Research
阮一峰的网络日志
阮一峰的网络日志
Webroot Blog
Webroot Blog
T
Threatpost
宝玉的分享
宝玉的分享
The Last Watchdog
The Last Watchdog
小众软件
小众软件
L
LINUX DO - 最新话题
C
Cisco Blogs
T
Troy Hunt's Blog
Schneier on Security
Schneier on Security
酷 壳 – CoolShell
酷 壳 – CoolShell
www.infosecurity-magazine.com
www.infosecurity-magazine.com
雷峰网
雷峰网
G
GRAHAM CLULEY
有赞技术团队
有赞技术团队
Know Your Adversary
Know Your Adversary
博客园 - 叶小钗
罗磊的独立博客
V
V2EX
博客园 - Franky
P
Proofpoint News Feed
SecWiki News
SecWiki News
腾讯CDC
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Jina AI
Jina AI
博客园 - 三生石上(FineUI控件)
S
Secure Thoughts
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Google DeepMind News
Google DeepMind News
Attack and Defense Labs
Attack and Defense Labs
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
PCI Perspectives
PCI Perspectives
V2EX - 技术
V2EX - 技术
Google DeepMind News
Google DeepMind News
Last Week in AI
Last Week in AI
aimingoo的专栏
aimingoo的专栏
Cisco Talos Blog
Cisco Talos Blog
N
News and Events Feed by Topic
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
S
SegmentFault 最新的问题

Another Dayu - Wordpress

WordPress 插件 – 旅行地图 WP Travel Map WordPress 友情链接插件 Simple 版 减肥前的准备工作 – Strava Running Sync WordPress 插件 VXNA 和 Folo 一点点展开我的 macOS PIVOT Vol.14 折纸战士 WordPress Newsletter 插件 Bearblog 风格点赞按钮 WordPress 插件-NeoDB Integration 书影音展示页面
我的 CSS 设置
2025-10-27 · via Another Dayu - Wordpress

Another Dayu

《如果你想使用这套 WordPress 主题》,最近更新了博客的 CSS 设置,分享给有需要的朋友。

整体设计以文字为主,少装饰性元素。不用颜色引导,而用灰阶节奏和留白。

ChatGPT 辅助设计,有问题可以帮忙反馈在评论区!

以下是完整 CSS:

这个以外,还有什么值得添加的css?/* ---------- 正文链接 ---------- */
.entry-content a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.entry-content a:hover {
  text-decoration-thickness: 2px;
}

/* ---------- 正文标题(只影响文章内容区) ---------- */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-weight: 500;
  line-height: 1.35;
  color: #000;
  letter-spacing: 0;          /* 标题不拉字距,更凝聚 */
  margin: 2.4em 0 0.9em;
  text-indent: 0;
  position: relative;         /* 为伪元素做准备 */
}

/* h1:正文中不鼓励使用,视觉上降级 */
.entry-content h1 {
  font-size: 1.35rem;
  text-align: left;
  margin: 2.2em 0 1em;
}

/* h2:章节级标题(使用 # 作为结构标记) */
.entry-content h2 {
  font-size: 1.32rem;
  padding-left: 1.2em;        /* 给 # 留空间 */
  margin-top: 2.6em;
}

.entry-content h2::before {
  content: "#";
  position: absolute;
  left: 0;
  top: 0;
  color: #999;                /* 弱化为结构提示,而非主视觉 */
  font-weight: 400;
}

/* h3:小节标题(不再重复符号,保持克制) */
.entry-content h3 {
  font-size: 1.15rem;
  color: #222;
  margin-top: 1.9em;
}

/* h4 / h5 / h6:提示级标题 */
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-size: 1.02rem;
  color: #333;
  font-weight: 500;
  margin-top: 1.6em;
}

#Wordpress #建站 #技术笔记 #电纸书