首页:修订间差异
来自勿忘草与永远的少女
跳到导航跳到搜索
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
<div class="wiki-main"> | <div class="wiki-main"> | ||
<!-- 自定义 Logo 区域 --> | |||
<div class="custom-logo" style="text-align:center; margin:20px 0 30px 0;"> | |||
<img src="/wikibg/logo.jpg" alt="网站Logo" style="max-height:100px; width:auto;"> | |||
<!-- 如果你还没有上传 Logo,可以用文字代替 --> | |||
<!-- <h1 style="font-size:32px; color:#36c; margin:0;">我的 Wiki</h1> --> | |||
</div> | |||
<!-- 全站通知 --> | <!-- 全站通知 --> | ||
| 第34行: | 第41行: | ||
</div> | </div> | ||
<!-- | <!-- 最新内容区域 --> | ||
<div class="content-section" style="margin-top:30px;"> | <div class="content-section" style="margin-top:30px;"> | ||
<h2 style="border-bottom:2px solid #36c; padding-bottom:8px;">最新内容</h2> | <h2 style="border-bottom:2px solid #36c; padding-bottom:8px;">最新内容</h2> | ||
| 第54行: | 第61行: | ||
</div> | </div> | ||
<!-- | <!-- 隐藏页面标题和默认 Logo 的 CSS --> | ||
<style> | <style> | ||
/* 隐藏页面主标题 */ | /* 隐藏页面主标题 */ | ||
| 第61行: | 第68行: | ||
} | } | ||
/* | /* 隐藏默认的左上角 Logo */ | ||
# | #p-logo { | ||
display: none !important; | |||
} | |||
/* 调整主内容区域的上边距 */ | |||
.mw-body { | |||
margin-top: 0 !important; | |||
} | |||
/* 如果需要隐藏整个左侧边栏,取消下面的注释 */ | |||
/* | |||
#mw-panel { | |||
display: none !important; | |||
} | |||
.mw-body { | |||
margin-left: 0 !important; | |||
} | } | ||
*/ | |||
/* | /* 卡片悬停效果 */ | ||
.nav-card { | .nav-card { | ||
box-shadow: 0 4px 6px rgba(0,0,0,0.1); | box-shadow: 0 4px 6px rgba(0,0,0,0.1); | ||
} | } | ||
/* | /* 响应式设计 */ | ||
@media (max-width: 768px) { | @media (max-width: 768px) { | ||
.nav-cards { | .nav-cards { | ||
2026年3月27日 (五) 22:37的版本
<img src="/wikibg/logo.jpg" alt="网站Logo" style="max-height:100px; width:auto;">
全站通知: 本站数据正在完善中,欢迎参与编辑贡献!
<style> /* 隐藏页面主标题 */ .firstHeading, #firstHeading {
display: none !important;
}
/* 隐藏默认的左上角 Logo */
- p-logo {
display: none !important;
}
/* 调整主内容区域的上边距 */ .mw-body {
margin-top: 0 !important;
}
/* 如果需要隐藏整个左侧边栏,取消下面的注释 */ /*
- mw-panel {
display: none !important;
} .mw-body {
margin-left: 0 !important;
}
- /
/* 卡片悬停效果 */ .nav-card {
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
/* 响应式设计 */ @media (max-width: 768px) {
.nav-cards {
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.nav-card a {
font-size: 14px !important;
}
} </style>