MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 15: | Line 15: | ||
/* 3. 隐藏顶部标签栏(Main Page / Discussion / Read 等)*/ | /* 3. 隐藏顶部标签栏(Main Page / Discussion / Read 等)*/ | ||
body.page-Main_Page .vector-header-container { | body.page-Main_Page .vector-header-container { | ||
display: none !important; | |||
} | |||
/* 隐藏主页标题 “Welcome” */ | |||
body.page-Main_Page .firstHeading { | |||
display: none !important; | display: none !important; | ||
} | } | ||
Revision as of 01:40, 12 April 2025
/* === 完全隐藏 Main_Page 顶部元素(Logo + 工具栏 + 标签栏)=== */
/* 1. 隐藏 Logo 图标区域 */
body.page-Main_Page #p-logo {
display: none !important;
}
/* 2. 隐藏顶部搜索栏 + 用户名等工具栏 */
body.page-Main_Page #mw-head,
body.page-Main_Page #p-personal,
body.page-Main_Page #mw-head-base {
display: none !important;
}
/* 3. 隐藏顶部标签栏(Main Page / Discussion / Read 等)*/
body.page-Main_Page .vector-header-container {
display: none !important;
}
/* 隐藏主页标题 “Welcome” */
body.page-Main_Page .firstHeading {
display: none !important;
}