MediaWiki:Mobile.css: Difference between revisions
Jump to navigation
Jump to search
Chinaenglish (talk | contribs) No edit summary Tags: Reverted Mobile edit Mobile web edit |
Chinaenglish (talk | contribs) No edit summary Tags: Reverted Mobile edit Mobile web edit |
||
| Line 4: | Line 4: | ||
body.page-Main_Page .firstHeading { | body.page-Main_Page .firstHeading { | ||
display: none !important; | display: none !important; | ||
} | |||
body.page-Main_Page .mw-page-title-main { | |||
display: block !important; | |||
visibility:hidden; /* 文字保留占位,不会塌陷,SEO更好 */ | |||
height:120px; /* 改成你图片的高度 */ | |||
background-image: url("/w/images/8/8b/HomeBanner.png"); | |||
background-size: contain; | |||
background-repeat: no-repeat; | |||
background-position:center; | |||
} | } | ||
Revision as of 14:28, 31 October 2026
/* All CSS here will be loaded for users of the mobile site */
/* ========== 仅首页隐藏Main Page标题(移动端MinervaNeue) ========== */
body.page-Main_Page .firstHeading {
display: none !important;
}
body.page-Main_Page .mw-page-title-main {
display: block !important;
visibility:hidden; /* 文字保留占位,不会塌陷,SEO更好 */
height:120px; /* 改成你图片的高度 */
background-image: url("/w/images/8/8b/HomeBanner.png");
background-size: contain;
background-repeat: no-repeat;
background-position:center;
}