MediaWiki:Minerva.css
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* All CSS here will be loaded for users of the MinervaNeue skin */
/* 首页横幅:贴边填满,去掉四周空白 */
body.page-Main_Page .mw-page-title-main {
display: block !important;
color: transparent !important; /* 关键修改:让文字透明,但保留元素和背景 */
height: 120px;
margin: 0 -16px; /* 左右贴边:抵消内容区左右 padding,-16px 为示例值 */
padding: 0;
background-image: url("//www.chinaenglish.com/images/HomeBanner.png");
background-size: cover; /* 关键:填满整个区域,不再留白 */
background-repeat: no-repeat;
background-position: center;
}
body.page-Main_Page .mw-body {
padding-top: 0 !important;
}
body.page-Main_Page .heading-holder,
body.page-Main_Page .page-heading {
padding-top: 0 !important;
margin-top: 0 !important;
}
/* MinervaNeue 移动端强制展开所有章节,去掉折叠箭头 */
.mf-section-body {
display: block !important;
}
.mf-section-heading .mf-icon--expand {
display: none !important;
}