mirror of
https://ghfast.top/https://github.com/aeroxw/tick-stock-panel.git
synced 2026-09-12 14:24:15 +08:00
段数多时(2y 范围 50+ 段)表格把页面拉得很长。改为 max-h-420px 内滚动, 表头 sticky 吸顶保证滚动时列名可见。 实现注意: - sticky 必须加在 th 而非 tr (后者在 Chromium 不生效) - 表格改 border-separate border-spacing-0 — Chromium 在 preflight 默认的 border-collapse:collapse 下表格元素 sticky 完全失效 (computed 为 sticky 但不粘, crbug.com/702927); separate 模式下 tr 边框不绘制, 行分隔线 相应从 tr 挪到 td, 视觉不变 验证: tsc 通过; 实测容器 clientH=420/scrollH=1860 (页面少滚 ~1440px), 容器内滚动 1441px 后 th 与容器顶 delta=0 (吸顶生效), 截图确认列名行 固定、数据行正常。截图 gui-test-screenshots/regime-segments-*.png
292 KiB
1280x720px
292 KiB
1280x720px