请注意:更新本页面后,您可能需要清除浏览器缓存才能看到所作变更的影响。
Google Chrome、Microsoft Edge、Mozilla Firefox、Safari:按住⇧ Shift,同时单击“刷新”。
Google Chrome、Microsoft Edge、Mozilla Firefox、Safari:按住⇧ Shift,同时单击“刷新”。
本文件采用知识共享署名-相同方式共享 4.0 国际(CC BY-SA 4.0)许可协议授权。
- 您可以自由地:
- 分享 – 在任何媒介以任何形式复制、发行本作品
- 演绎 – 修改、转换或以本作品为基础进行创作
- 惟须遵守下列条件:
- 署名 – 您必须给出适当的署名(标明原作者),提供指向本许可协议的链接,同时标明是否(对原始作品)作了修改。您可以用任何合理的方式来署名,但是不得以任何方式暗示许可人为您或您的使用背书(即诱导原作者在不了解协议情况下给你授权)。
- 相同方式共享 – 如果您再混合、转换或者基于本作品进行创作,您必须基于与原先许可协议相同或相兼容的许可协议分发您贡献的作品。
/* <nowiki> */
/**
* SPDX-License-Identifier: CC-BY-SA-4.0
* _addText: '{{Gadget Header|license=CC-BY-SA-4.0}}'
*
* @source <en.wikipedia.org/wiki/MediaWiki:Gadget-StickyTableHeaders.csss>
*/
/**
* sortable tables and JS enhanced wikitables with thead, works with Safari. This is ideal.
* But borders are broken: <bugs.webkit.org/show_bug.cgi?id=128486>
*/
.jquery-tablesorter > thead,
.mw-sticky-header > thead {
position: -webkit-sticky;
position: sticky;
top: 0;
}
/* This does not seem to work, possibly due to the absolute/relative hacking mess of gongbi */
@media screen and (max-width: 1099px) and (min-width: 851px) {
.skin-gongbi .jquery-tablesorter > thead,
.skin-gongbi .mw-sticky-header > thead {
top: 3.125em;
}
}
@media screen and (min-width: 1100px) {
.skin-gongbi .jquery-tablesorter > thead,
.skin-gongbi .mw-sticky-header > thead {
top: 6em;
}
}
@media screen and (min-width: 1000px) {
.skin-vector-2022.vector-sticky-header-visible .jquery-tablesorter > thead,
.skin-vector-2022.vector-sticky-header-visible .mw-sticky-header > thead {
top: 3.125rem;
}
}
.jquery-tablesorter > tfoot,
.mw-sticky-header > tfoot {
position: -webkit-sticky;
position: sticky;
bottom: 0;
}
/**
* On mobile, where we have tables in overflowable boxes to avoid viewport overflows,
* by using display:block, sticky never works though :(
*/
/* </nowiki> */