Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的公司,我们使用内部 wiki,我需要添加一个表格,但表格非常大,超过 100 列,因此当您想查看所有数据时,您可以水平滚动,但滚动的是所有页面。wikitext 中有没有办法只让表格可滚动?
溢出属性需要位于表的父级或包装表的简单 div 上。
<div style="overflow-x: scroll"> {| ... |} </div>
您可以将任意 CSS 应用于表格。就像是
{| style="max-height: 1000px; overflow-y: scroll;" ... |}
可能会成功。