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://tncache1-f1.v3mh.com/image/2026/09/03/f90ba01fffca9afcd9fef2b6aadfb9b6.webp");
background-repeat: no-repeat;
background-position: center center;
background-attachment: fixed;
background-size: cover;
}
/* 主内容框完全透明,去除边框 */
#content {
background-color: transparent !important;
border: none !important;
}
/* 左侧侧边栏全部透明 */
#mw-panel {
background: transparent !important;
}
#mw-panel div.portal {
background: transparent !important;
border: none !important;
}
/* 顶部头部区域透明 */
#mw-head {
background-color: transparent !important;
}
#p-logo {
background: transparent !important;
}
/* 顶部标签栏(阅读/讨论)透明 */
div.vectorTabs ul li {
background-color: transparent !important;
}
div.vectorTabs span {
background: transparent !important;
}
/* 右上角工具下拉菜单透明 */
#p-cactions li {
background-color: transparent !important;
}
#p-cactions li a {
background: transparent !important;
}
/* 底部页脚透明 */
#footer {
background-color: transparent !important;
border: none !important;
}
/* ===== 双端黑幕样式(PC悬浮 / 手机点击切换) ===== */
.touch‑heimu,
.touch‑heimu a:link,
.touch‑heimu a:visited,
.touch‑heimu a.external {
background-color: #000000;
color: #000000;
transition: color 0.3s ease;
cursor: pointer;
user‑select: none;
}
/*电脑悬浮效果*/
@media (hover: hover) and (pointer: fine) {
.touch‑heimu:hover,
.touch‑heimu:hover a:link,
.touch‑heimu:hover a:visited {
color: #ffffff;
}
}
/*手机点击激活类*/
.touch‑heimu.active,
.touch‑heimu.active a:link,
.touch‑heimu.active a:visited {
color: #ffffff;
}