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

推荐订阅源

W
WeLiveSecurity
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
S
Security @ Cisco Blogs
T
Threat Research - Cisco Blogs
TaoSecurity Blog
TaoSecurity Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
腾讯CDC
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
罗磊的独立博客
F
Full Disclosure
博客园 - 【当耐特】
C
CERT Recently Published Vulnerability Notes
Engineering at Meta
Engineering at Meta
Application and Cybersecurity Blog
Application and Cybersecurity Blog
T
Threatpost
I
Intezer
V2EX - 技术
V2EX - 技术
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The Hacker News
The Hacker News
小众软件
小众软件
Google DeepMind News
Google DeepMind News
T
Tailwind CSS Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog
N
News | PayPal Newsroom
MyScale Blog
MyScale Blog
AI
AI
Vercel News
Vercel News
Spread Privacy
Spread Privacy
美团技术团队
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The GitHub Blog
The GitHub Blog
V
Vulnerabilities – Threatpost
Schneier on Security
Schneier on Security
Cyberwarzone
Cyberwarzone
G
GRAHAM CLULEY
Help Net Security
Help Net Security
Hacker News: Ask HN
Hacker News: Ask HN
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
L
LINUX DO - 热门话题
U
Unit 42
L
LangChain Blog
Recent Announcements
Recent Announcements

地质网论坛(dzw6.com)

WordPress智能分词搜索插件Meilisearch Pro:毫秒级响应 Analytics Pro:WordPress站内搜索词统计分析工具 B2主题工单增强优化:新增完结与邮件通知功能 2026WordPress新年快乐灯笼插件,为网站增添节日氛围 B2主题限制发帖数量,优化论坛管理 B2主题圈子话题按钮优化教程 B2主题新增认证功能:管理员可手动添加与取消认证 【资源站必备】B2主题角色访问限制插件,轻松管理会员内容 B2主题会员卡 - 卡密插件2025增强版,功能强大更便捷
B2主题美化:文档界面导航优化指南
老白 · 2026-01-06 · via 地质网论坛(dzw6.com)

B2主题美化开发系列:B2主题单个文档界面只能显示当前分类的帮助文档,用户切换不方便。因此老白将其改为更加便捷、易于使用的现代化导航设计支持最多三级文档分类搜索文档工具优化,演示效果如下:

B2主题美化之文档界面导航优化

主要是修改模板文件和CSS样式美化,支持多级文档分类

single-document.php

文件在主题根目录,替换或者修改:

style.css

添加到文件底部:

/* 修改常见问题目录样式开始-https://www.dzw6.com/35945.html */
.b2-document-content .document-search-left h2,
.b2-document-content .document-left-item h2,
.b2-document-content .document-faq-box h2 {
font-size: 17px;
font-weight: 500;
line-height: 1.4;
margin-bottom: 18px;
margin-top: -14px;
}

.b2-document-content .document-faq-box .document-faq-accordion {
margin-top: 8px;
}

.b2-document-content .document-faq-box .document-faq-section {
border-top: 1px solid #f3f3f3;
padding-top: 8px;
margin-top: 8px;
}

.b2-document-content .document-faq-box .document-faq-section:first-child {
border-top: 0;
padding-top: 0;
margin-top: 0;
}

.b2-document-content .document-faq-box .document-faq-summary {
list-style: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: space-between;
user-select: none;
padding: 4px 0;
color: #222;
}

.b2-document-content .document-faq-box .document-faq-summary::-webkit-details-marker {
display: none;
}

.b2-document-content .document-faq-box .document-faq-title {
font-size: 16px;
font-weight: 500;
line-height: 1.6;
}

.b2-document-content .document-faq-box .document-faq-toggle {
font-size: 12px;
font-weight: 400;
color: #777;
display: inline-flex;
align-items: center;
gap: 4px;
line-height: 1;
flex: 0 0 auto;
margin-left: 12px;
}

.b2-document-content .document-faq-box .document-faq-toggle i {
font-size: 16px;
line-height: 1;
display: inline-block;
vertical-align: middle;
}

.b2-document-content .document-faq-box .document-faq-toggle i:before {
display: inline-block;
}

.b2-document-content .document-faq-box .document-faq-toggle-close {
display: none;
}

.b2-document-content .document-faq-box details[open]>.document-faq-summary .document-faq-toggle-open {
display: none;
}

.b2-document-content .document-faq-box details[open]>.document-faq-summary .document-faq-toggle-close {
display: inline-flex;
}

.b2-document-content .document-faq-box .document-faq-panel {
margin-top: 6px;
}

.b2-document-content .document-faq-box .document-faq-subcat+.document-faq-subcat {
margin-top: 12px;
}

.b2-document-content .document-faq-box .document-faq-subcat .document-cat-rot {
font-size: 14.5px;
font-weight: 500;
line-height: 1.6;
margin-top: 6px;
}


.b2-document-content .document-faq-box .document-faq-panel>.document-faq-subcat {
margin-left: 10px;
}

.b2-document-content .document-faq-box .document-faq-subcat .document-faq-subcat {
margin-left: 20px;
}

.b2-document-content .document-faq-box ul.document-faq-posts {
list-style: none;
margin-left: 18px;
}

.b2-document-content .document-faq-box ul.document-faq-posts li {
margin-top: 6px;
font-size: 14px;
line-height: 1.8;
}

.b2-document-content .document-faq-box ul.document-faq-posts a {
color: #222;
}

.b2-document-content .document-faq-box ul.document-faq-posts a:hover {
color: #eb7350;
}

.b2-document-content .document-faq-box ul.document-faq-posts li.current {
color: #eb7350;
font-weight: 600;
}

.b2-document-content .document-search-left .single-document-search {
width: 100%;
}

.b2-document-content .document-search-left .single-document-search input {
background-color: #f5f5f5;
}

.b2-document-content .document-search-left .single-document-search input {
padding-left: 10px;
padding-right: 40px;
}

.b2-document-content .document-search-left .single-document-search button {
left: auto;
right: 0;
}
.document-left-item {
padding: 30px 17px;
}

/* 修改常见问题目录样式结束-https://www.dzw6.com/35945.html */

定制开发接单

B2主题可扩展的东西很多,欢迎大家进行个性化定制以及功能开发。

B2主题微信交流群:x c b t m w(防爬虫间隔符)

B2主题AI自动评论点赞插件

7B2主题阅读权限管理插件B2 Perm Manager Pro

已开发B2主题插件大全

建站经验

B2主题通用美化:https://www.dzw6.com/tag/b2-theme-beautify

WordPress顶级优化:https://www.dzw6.com/tag/wordpress_optimization

幸运之星正在降临...

点击领取今天的签到奖励!

恭喜!您今天获得了{{mission.data.mission.credit}}积分

  • 限制以下商品使用: 限制以下商品分类使用: 不限制使用:

    所有商品和商品类型均可使用