xcloud-ai115 downloadsCustomize table layout, column width, text wrapping, alignment, overflow, and sticky headers. Replaces hand-written CSS snippets.
Customize Markdown table layout, column width, text wrapping, alignment, overflow control, and sticky headers. Replaces hand-written CSS snippets with visual settings and live preview.
中文说明在后 / Chinese description below
自定义 Markdown 表格的布局、列宽、换行、对齐、溢出收敛与表头粘性,替代手写 CSS snippet,所有设置可视化配置且实时生效。
main.js, manifest.json, styles.css from the latest release<vault>/.obsidian/plugins/table-layout-helper/main.js、manifest.json、styles.css 三个文件.obsidian/plugins/table-layout-helper/Long table with scroll:
Clean look:
Compact table:
场景一:长表格内滚动(推荐)
效果:表格超过 400px 高度时出现滚动条,表头始终固定在顶部,适合命令列表、参数说明等长表格。
场景二:简洁美观
场景三:紧凑型表格
| Setting | Description | Default |
|---|---|---|
| Enable plugin | Global toggle | On |
| Table layout mode | fixed / auto | fixed |
| Table width | 100% / pixels / auto | 100% |
| First column width | pixels, empty = auto | 200 |
| First column nowrap | prevent heading wrap | On |
| Content column wrap | break-word / break-all / normal | break-word |
| Vertical alignment | top / middle / bottom | top |
| Line height | cell text line height | 1.6 |
| Overflow mode | visible / hidden / scroll / auto | visible |
| Max height | pixels, empty = no limit | empty |
| Sticky header | header stays on scroll | Off |
| Zebra stripes | alternating row colors | Off |
| Zebra color | even row background | #f8f9fa |
| Link no-wrap | prevent link wrapping | On |
| Border width | pixels, 0 = no border | 1 |
| Border color | border color | #e8e8e8 |
| Border collapse | collapse / separate | collapse |
| 设置项 | 说明 | 默认值 |
|---|---|---|
| 启用插件 | 全局开关 | 开 |
| 表格布局模式 | fixed / auto | fixed |
| 表格宽度 | 100% / 像素值 / auto | 100% |
| 第一列宽度 | 像素值,留空=自适应 | 200 |
| 第一列不换行 | 防止标题列折行 | 开 |
| 内容列换行方式 | break-word / break-all / normal | break-word |
| 垂直对齐 | top / middle / bottom | top |
| 行高 | 单元格文本行高 | 1.6 |
| 溢出处理 | visible / hidden / scroll / auto | visible |
| 最大高度 | 像素值,留空=不限制 | 空 |
| 表头粘性 | 滚动时固定表头 | 关 |
| 斑马纹 | 奇偶行交替色 | 关 |
| 斑马纹颜色 | 偶数行背景色 | #f8f9fa |
| 链接不折行 | 表格内链接不换行 | 开 |
| 边框宽度 | 像素值,0=无边框 | 1 |
| 边框颜色 | 边框颜色 | #e8e8e8 |
| 边框合并 | collapse / separate | collapse |
main.js), no compilation neededmain.ts is TypeScript source reference for secondary development<style> tag in document.head!important used — overrides via selector specificitymain.js),无需编译,直接可用main.ts 为 TypeScript 源码参考,供二次开发使用<style> 标签到 document.head 应用样式!important,通过提高选择器特异性覆盖默认样式MIT License - Copyright (c) 2026 旭说云原生