MediaWiki:Common.css
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5。
/* 全局背景 */
body {
background-image: url("https://tc.alcy.cc/tc/20260429/0250621d810c416de209f19d011ae10e.webp");
background-repeat: no-repeat;
background-position: center center;
background-attachment: fixed;
background-size: cover;
}
/* ===== 删除全部白色底层容器(关键缺失选择器) ===== */
div#mw-page-base {
background: transparent !important;
}
div#mw-head-base {
background: transparent !important;
}
/* 主内容框 */
#content {
background-color: transparent !important;
border: none !important;
}
/* 左侧侧边栏区域 */
#mw-panel {
background: transparent !important;
}
#mw-panel .portal {
background: transparent !important;
}
/* 顶部导航栏 */
#mw-head {
background: transparent !important;
}
#p-logo {
background: transparent !important;
}
/* 页面标签:首页 / 讨论 */
div.vectorTabs {
background: transparent !important;
}
div.vectorTabs ul li {
background: transparent !important;
}
div.vectorTabs span {
background: transparent !important;
}
/* 操作下拉菜单 */
#p-cactions {
background: transparent !important;
}
#p-cactions li {
background: transparent !important;
}
/* 页脚底部 */
#footer {
background-color: transparent !important;
border: none !important;
}
/* 消除页面最外层空白底色 */
html, body {
background-color: transparent !important;
}