fix: OFD 表格竖线溢出修复 (#723)

cnofd 库渲染 OFD 表格时,为每个元素创建独立 SVG 容器并设置
inline style overflow:visible。当表格中间竖线的 path 元素
y 坐标超过 SVG 容器高度时,线条会溢出到表格底部边框之外。

修复方案:对 #content 下的 SVG 元素强制 overflow:hidden,
使用 !important 覆盖 inline style,精确裁剪超出部分。

Closes #xxx
This commit is contained in:
kl
2026-03-11 20:04:00 +08:00
committed by GitHub
parent d1c310ab63
commit db5cd68a1e

View File

@@ -202,6 +202,13 @@ body { margin: 0; }
src: url(./fonts/simhei.woff); src: url(./fonts/simhei.woff);
} }
/* OFD 表格竖线溢出修复 */
/* cnofd 库在 SVG 上设置了 inline style overflow:visible导致表格中间竖线的 */
/* path 元素超出 SVG 容器高度后仍然可见。使用 !important 覆盖 inline style。 */
#content svg {
overflow: hidden !important;
}
.gray { .gray {
-webkit-filter: grayscale(100%); -webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%); -moz-filter: grayscale(100%);