编辑“︁
Template:Sticky table start/doc
”︁(章节)
跳转到导航
跳转到搜索
这是
Sticky table start
模板的
文档页面
。
警告:
您没有登录。如果您进行任何编辑,您的IP地址会公开展示。如果您
登录
或
创建账号
,您的编辑会以您的用户名署名,此外还有其他益处。
反垃圾检查。
不要
加入这个!
== 用法 == Include {{tlx|sticky table start}} above and {{tlx|sticky table end}} below the table. Add any of the following as needed. === Table classes === {| class=wikitable style="background-color: white;" |+ Classes for table start wikitext: <code><nowiki>{|</nowiki> class="''class1 class2''"</code>. |- ! Class ! Summary |- | class=nowrap | <code>sticky-table-head</code> | Make the table head top sticky. Don't combine with <code>sticky-table-row''N''</code>. <strong>Requires sortable table</strong>, which moves consecutive top header rows into the {{Tag|thead|o}} (table head) [[HTML element]]. Rows using the <code>sorttop</code> class become sticky after sorting (issue: {{Phab|T355492}}). Avoid making headers sticky that aren't for the entire table (ex. section header rows). Avoid making [[Template:Sticky header#Excessively tall header rows|excessively tall header rows]] sticky that might block too much data on short screens (ex. [[Page orientation|mobile landscape]]). |- | class=nowrap | <code>sticky-table-row''N''</code> | Make row ''N'' top sticky where ''N'' is a number from 1 to 2. Limit 1 to avoid stacking issues where a taller row 1 is still visible. Don't combine with <code>sticky-table-head</code>. Unpredictable results if the row spans or is spanned with the <code>rowspan</code> attribute. |- | class=nowrap | <code>sticky-table-col''N''</code> | Make column ''N'' left sticky where ''N'' is a number from 1 to 2. Limit 1 to avoid stacking issues where a wider column 1 is still visible. Unpredictable results if the column spans or is spanned with the <code>colspan</code> attribute. Avoid making an excessively wide column sticky that might block too much data on narrow screens (ex. [[Page orientation|mobile portrait]]). |} === Cell classes === {| class=wikitable style="background-color: white;" |+ Classes for cell wikitext: <code><nowiki>!</nowiki> class="''class1 class2''" <nowiki>|</nowiki> …</code><br>or <code><nowiki>|</nowiki> class="''class1 class2''" <nowiki>|</nowiki> …</code>. |- ! Class ! Summary |- | class=nowrap | <code>sticky-table-none</code> | Remove sticky from cell in cases where <code>rowspan</code> causes an issue. For example, a sticky column using <code>rowspan</code> will have some cells that are sticky in the next column. See [[#Usage of sticky-table-none and sticky-table-left|usage example]]. Usage [https://en.wikipedia.org/w/index.php?search=insource%3A%22sticky-table-none%22&title=Special:Search&profile=advanced&fulltext=1&ns0=1 search]. |- | class=nowrap | <code>sticky-table-left</code> | Add left sticky to cell in cases where <code>rowspan</code> causes an issue. For example, column 1 using <code>rowspan</code> with a sticky column 2 will have some cells in column 2 that are not sticky and some in column 3 that are sticky. See [[#Usage of sticky-table-none and sticky-table-left|usage example]]. Usage [https://en.wikipedia.org/w/index.php?search=insource%3A%22sticky-table-left%22&title=Special:Search&profile=advanced&fulltext=1&ns0=1 search]. |}
摘要:
请注意,所有对Local Chinese Wikipedia的贡献均可能会被其他贡献者编辑、修改或删除。如果您不希望您的文字作品被随意编辑,请不要在此提交。
您同时也向我们承诺,您提交的内容为您自己所创作,或是复制自公共领域或类似自由来源(详情请见
Project:著作权
)。
未经许可,请勿提交受著作权保护的作品!
取消
编辑帮助
(在新窗口中打开)
导航菜单
个人工具
未登录
讨论
贡献
创建账号
登录
命名空间
模板
讨论
大陆简体
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
臺灣正體
查看
阅读
编辑
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
工具
链入页面
相关更改
特殊页面
页面信息